nomlib
Loading...
Searching...
No Matches
nom::VString Class Reference

Public Types

typedef VString self_type

Public Member Functions

 VString ()
 Construct an invalid member key.
 VString (const char *key)
 Construct a member key from a C string.
 VString (const std::string &key)
 Construct a member key from a C++ string.
 VString (ArrayIndex index)
 Construct a member key from an array element index.
 VString (const self_type &rhs)
 Copy constructor.
self_type & operator= (const self_type &rhs)
 Copy assignment operator.
bool operator< (const self_type &rhs) const
 Lesser than comparison operator.
bool operator== (const self_type &rhs) const
 Equality comparison operator.
std::string string () const
 Get the C++ string stored for this member key.
const char * c_str () const
 Get the C string stored for this member key.
ArrayIndex index () const
 Get the stored array index key.

Private Member Functions

void swap (self_type &rhs)

Private Attributes

std::string cstr_
ArrayIndex index_

Detailed Description

Definition at line 40 of file VString.hpp.

Member Typedef Documentation

◆ self_type

typedef VString nom::VString::self_type

Definition at line 43 of file VString.hpp.

Member Function Documentation

◆ operator<()

bool nom::VString::operator< ( const self_type & rhs) const

Lesser than comparison operator.

Note
This is required for an implementation inside std::map.

◆ operator==()

bool nom::VString::operator== ( const self_type & rhs) const

Equality comparison operator.

Note
This is required for an implementation inside std::map.

Member Data Documentation

◆ cstr_

std::string nom::VString::cstr_
private

Definition at line 87 of file VString.hpp.

◆ index_

ArrayIndex nom::VString::index_
private

Definition at line 88 of file VString.hpp.


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