OpenStructure
Public Member Functions
FixedString< LENGTH > Class Template Reference

#include <fixed_string.hh>

Public Member Functions

 FixedString ()
 
 FixedString (const String &str)
 
 FixedString (const char *str)
 
size_t length () const
 
size_t size () const
 
char operator[] (size_t index) const
 
char & operator[] (size_t index)
 
bool operator== (const String &rhs) const
 
bool operator!= (const String &rhs) const
 
bool operator== (const FixedString< LENGTH > &rhs) const
 
bool operator!= (const FixedString< LENGTH > &rhs) const
 
size_t capacity () const
 
FixedString< LENGTH > & operator= (const String &rhs)
 
template<typename DS >
void Serialize (DS &ds)
 
const char * c_str () const
 
char * data ()
 
const char * data () const
 

Detailed Description

template<size_t LENGTH>
class ost::FixedString< LENGTH >

string class that uses an array of static size to hold the characters

Definition at line 13 of file fixed_string.hh.

Constructor & Destructor Documentation

◆ FixedString() [1/3]

FixedString ( )
inline

Definition at line 15 of file fixed_string.hh.

◆ FixedString() [2/3]

FixedString ( const String str)
inlineexplicit

Definition at line 19 of file fixed_string.hh.

◆ FixedString() [3/3]

FixedString ( const char *  str)
inlineexplicit

Definition at line 23 of file fixed_string.hh.

Member Function Documentation

◆ c_str()

const char* c_str ( ) const
inline

Definition at line 70 of file fixed_string.hh.

◆ capacity()

size_t capacity ( ) const
inline

Definition at line 58 of file fixed_string.hh.

◆ data() [1/2]

char* data ( )
inline

Definition at line 73 of file fixed_string.hh.

◆ data() [2/2]

const char* data ( ) const
inline

Definition at line 74 of file fixed_string.hh.

◆ length()

size_t length ( ) const
inline

Definition at line 28 of file fixed_string.hh.

◆ operator!=() [1/2]

bool operator!= ( const FixedString< LENGTH > &  rhs) const
inline

Definition at line 55 of file fixed_string.hh.

◆ operator!=() [2/2]

bool operator!= ( const String rhs) const
inline

Definition at line 48 of file fixed_string.hh.

◆ operator=()

FixedString<LENGTH>& operator= ( const String rhs)
inline

Definition at line 61 of file fixed_string.hh.

◆ operator==() [1/2]

bool operator== ( const FixedString< LENGTH > &  rhs) const
inline

Definition at line 51 of file fixed_string.hh.

◆ operator==() [2/2]

bool operator== ( const String rhs) const
inline

Definition at line 44 of file fixed_string.hh.

◆ operator[]() [1/2]

char& operator[] ( size_t  index)
inline

Definition at line 40 of file fixed_string.hh.

◆ operator[]() [2/2]

char operator[] ( size_t  index) const
inline

Definition at line 36 of file fixed_string.hh.

◆ Serialize()

void Serialize ( DS &  ds)
inline

Definition at line 67 of file fixed_string.hh.

◆ size()

size_t size ( ) const
inline

Definition at line 32 of file fixed_string.hh.


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