Class OKS string.
More...
#include <object.hpp>
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.
◆ OksString() [1/5]
dunedaq::oks::OksString::OksString |
( |
| ) |
|
|
inline |
to deallocate memory when destroyed
Definition at line 374 of file object.hpp.
◆ OksString() [2/5]
dunedaq::oks::OksString::OksString |
( |
const std::string & | s | ) |
|
|
inline |
◆ OksString() [3/5]
dunedaq::oks::OksString::OksString |
( |
const char * | s | ) |
|
|
inline |
◆ 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) {;}
◆ 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
◆ 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();}
◆ OksKernel
The documentation for this class was generated from the following file:
- /github/workspace/dunedaq/sourcecode/oks/include/oks/object.hpp