Scippy

SoPlex

Sequential object-oriented simPlex

NameSet::Name Class Reference

Handles 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 80 of file nameset.h.

Constructor & Destructor Documentation

◆ Name() [1/3]

Name ( )

default constructor.

Definition at line 127 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 133 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 137 of file nameset.h.

Member Function Documentation

◆ isConsistent()

bool isConsistent ( ) const

consistency check.

Definition at line 117 of file nameset.h.

References NameSet::Name::name.

◆ operator=()

Name & operator= ( const Name old)

Definition at line 141 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 107 of file nameset.h.

◆ operator==

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

equality operator.

Definition at line 102 of file nameset.h.

Member Data Documentation

◆ deflt

const char deflt = '\0'
staticprivate

default zero string.

Definition at line 87 of file nameset.h.

◆ name

const char* name

pointer to the name string.

Definition at line 95 of file nameset.h.

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