Scippy

SoPlex

Sequential object-oriented simPlex

NameSet::Name Class Reference

Handles of names in a NameSet.Class Name provides the handles (i.e., char*s) of names in a NameSet. More...

#include <nameset.h>

Public Member Functions

Debugging
bool isConsistent () const
 consistency check. More...
 
Constructors / destructors
 Name ()
 default constructor. More...
 
 Name (const Name &str)
 copy constructor. More...
 
 Name (const char *str)
 implictly constructs a Name out of a C style character string. More...
 

Public Attributes

Public Data
const char * name
 pointer to the name string. More...
 

Static Private Attributes

Private Data
static const char deflt = '\0'
 default zero string. More...
 

Friends

Friends
int operator== (const Name &n1, const Name &n2)
 equality operator. More...
 
std::ostream & operator<< (std::ostream &out, const Name &n)
 output operator. More...
 

Detailed Description

Handles of names in a NameSet.

Class Name provides the handles (i.e., char*s) of names in a NameSet.

Definition at line 71 of file nameset.h.

Constructor & Destructor Documentation

Name ( )

default constructor.

Definition at line 118 of file nameset.h.

Name ( const Name str)

copy constructor.

Only the pointer to the name is copied, but not the name itself.

Definition at line 124 of file nameset.h.

Name ( const char *  str)

implictly constructs a Name out of a C style character string.

Definition at line 128 of file nameset.h.

Member Function Documentation

bool isConsistent ( ) const

consistency check.

Definition at line 108 of file nameset.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Name n 
)
friend

output operator.

Definition at line 98 of file nameset.h.

int operator== ( const Name n1,
const Name n2 
)
friend

equality operator.

Definition at line 93 of file nameset.h.

Member Data Documentation

const char deflt = '\0'
staticprivate

default zero string.

Definition at line 78 of file nameset.h.

const char* name

pointer to the name string.

Definition at line 86 of file nameset.h.

Referenced by soplex::NameSetNameHashFunction().