DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::oks::OksString Class Reference

Class OKS string. More...

#include <object.hpp>

Inheritance diagram for dunedaq::oks::OksString:
[legend]
Collaboration diagram for dunedaq::oks::OksString:
[legend]

Public Member Functions

 OksString ()
 to deallocate memory when destroyed
 
 OksString (const std::string &s)
 
 OksString (const char *s)
 
 OksString (const char *s, size_t n)
 
 OksString (const std::string &s, std::string::size_type n)
 
void * operator new (size_t)
 
void operator delete (void *ptr)
 

Friends

class OksKernel
 

Detailed Description

Class OKS string.

The class OksString is inherited from C++ Standard Library string class but uses private memory allocator for instances (is used for performance optimisation)

Definition at line 369 of file object.hpp.

Constructor & Destructor Documentation

◆ OksString() [1/5]

dunedaq::oks::OksString::OksString ( )
inline

to deallocate memory when destroyed

Definition at line 374 of file object.hpp.

374{;}

◆ OksString() [2/5]

dunedaq::oks::OksString::OksString ( const std::string & s)
inline

Definition at line 375 of file object.hpp.

375: std::string(s) {;}

◆ OksString() [3/5]

dunedaq::oks::OksString::OksString ( const char * s)
inline

Definition at line 376 of file object.hpp.

376: std::string(s) {;}

◆ OksString() [4/5]

dunedaq::oks::OksString::OksString ( const char * s,
size_t n )
inline

Definition at line 377 of file object.hpp.

377: std::string(s,n) {;}

◆ OksString() [5/5]

dunedaq::oks::OksString::OksString ( const std::string & s,
std::string::size_type n )
inline

Definition at line 378 of file object.hpp.

378: std::string(s,0,n) {;}

Member Function Documentation

◆ operator delete()

void dunedaq::oks::OksString::operator delete ( void * ptr)
inline

Definition at line 381 of file object.hpp.

381{boost::fast_pool_allocator<OksString>::deallocate(reinterpret_cast<OksString*>(ptr));}
OksString()
to deallocate memory when destroyed
Definition object.hpp:374

◆ operator new()

void * dunedaq::oks::OksString::operator new ( size_t )
inline

Definition at line 380 of file object.hpp.

380{return boost::fast_pool_allocator<OksString>::allocate();}

Friends And Related Symbol Documentation

◆ OksKernel

friend class OksKernel
friend

Definition at line 370 of file object.hpp.


The documentation for this class was generated from the following file: