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...
 
Nameoperator= (const Name &old)
 

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() [1/3]

Name ( )

default constructor.

Definition at line 118 of file nameset.h.

◆ Name() [2/3]

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() [3/3]

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

◆ isConsistent()

bool isConsistent ( ) const

consistency check.

Definition at line 108 of file nameset.h.

◆ operator=()

Name& operator= ( const Name old)

Definition at line 132 of file nameset.h.

References NameSet::Name::name.

Friends And Related Function Documentation

◆ operator<<

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

output operator.

Definition at line 98 of file nameset.h.

◆ operator==

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

equality operator.

Definition at line 93 of file nameset.h.

Member Data Documentation

◆ deflt

const char deflt = '\0'
staticprivate

default zero string.

Definition at line 78 of file nameset.h.

◆ name

const char* name

pointer to the name string.

Definition at line 86 of file nameset.h.

Referenced by soplex::NameSetNameHashFunction(), and NameSet::Name::operator=().