BLPAPI C++  3.24.11
Component blpapi_name

Provide a representation of strings for use as container keys. More...

Namespaces

 BloombergLP
 
 BloombergLP::blpapi
 

Classes

class  Name
 

Functions

bool operator== (const Name &lhs, const Name &rhs)
 
bool operator!= (const Name &lhs, const Name &rhs)
 
bool operator== (const Name &lhs, const char *rhs)
 
bool operator!= (const Name &lhs, const char *rhs)
 
bool operator== (const char *lhs, const Name &rhs)
 
bool operator!= (const char *lhs, const Name &rhs)
 
bool operator< (const Name &lhs, const Name &rhs)
 
bool operator<= (const Name &lhs, const Name &rhs)
 
bool operator> (const Name &lhs, const Name &rhs)
 
bool operator>= (const Name &lhs, const Name &rhs)
 
std::ostream & operator<< (std::ostream &stream, const Name &name)
 

Detailed Description

Provide a representation of strings for use as container keys.

Purpose:
Provide a representation of strings for use as container keys.
Classes:
blpapi::Name constant string in an efficient form for use as container keys
Description:
This component implements a representation of a string which is efficient for use as a key in a container (constant-time hashing and ordering operations using the standard "intern string" technique).

Function Documentation

◆ operator!=() [1/3]

bool operator!= ( const Name lhs,
const Name rhs 
)

Return false if the specified lhs and rhs name objects have the same value, and true otherwise. Two Name objects a and b have the same value if and only if strcmp(a.string(), b.string()) == 0. Note that lhs != rhs is equivalent to !(lhs==rhs).

◆ operator!=() [2/3]

bool operator!= ( const Name lhs,
const char *  rhs 
)

Return false if the specified lhs and rhs have the same value, and true otherwise. A Name object a and a null-terminated string b have the same value if and only if strcmp(a.string(), b) == 0. The behavior is undefined unless rhs is a null-terminated string.

◆ operator!=() [3/3]

bool operator!= ( const char *  lhs,
const Name rhs 
)

Return false if the specified lhs and rhs have the same value, and true otherwise. A Name object a and a null-terminated string b have the same value if and only if strcmp(a.string(), b) == 0. The behavior is undefined unless lhs is a null-terminated string.

◆ operator<()

bool operator< ( const Name lhs,
const Name rhs 
)

Return true if the specified lhs is ordered before the specified rhs, and false otherwise. The ordering used is stable within the lifetime of a single process and is compatible with operator==(const Name&, const Name&), however this order is neither guaranteed to be consistent across different processes (including repeated runs of the same process), nor guaranteed to be lexical (i.e. compatible with strcmp).

◆ operator<<()

std::ostream & operator<< ( std::ostream &  stream,
const Name name 
)

Write the value of the specified name object to the specified output stream, and return a reference to stream. Note that this human-readable format is not fully specified and can change without notice.

◆ operator<=()

bool operator<= ( const Name lhs,
const Name rhs 
)

Return false if the specified rhs is ordered before the specified lhs, and true otherwise. The ordering used is stable within the lifetime of a single process and is compatible with operator==(const Name&, const Name&), however this order is neither guaranteed to be consistent across different processes (including repeated runs of the same process), nor guaranteed to be lexical (i.e. compatible with strcmp).

◆ operator==() [1/3]

bool operator== ( const Name lhs,
const Name rhs 
)

Return true if the specified lhs and rhs name objects have the same value, and false otherwise. Two Name objects a and b have the same value if and only if strcmp(a.string(), b.string()) == 0.

◆ operator==() [2/3]

bool operator== ( const Name lhs,
const char *  rhs 
)

Return true if the specified lhs and rhs have the same value, and false otherwise. A Name object a and a null-terminated string b have the same value if and only if strcmp(a.string(), b) == 0. The behavior is undefined unless rhs is a null-terminated string.

◆ operator==() [3/3]

bool operator== ( const char *  lhs,
const Name rhs 
)

Return true if the specified lhs and rhs have the same value, and false otherwise. A Name object a and a null-terminated string b have the same value if and only if strcmp(a.string(), b) == 0. The behavior is undefined unless lhs is a null-terminated string.

◆ operator>()

bool operator> ( const Name lhs,
const Name rhs 
)

Return true if the specified rhs is ordered before the specified lhs, and false otherwise. The ordering used is stable within the lifetime of a single process and is compatible with operator==(const Name&, const Name&), however this order is neither guaranteed to be consistent across different processes (including repeated runs of the same process), nor guaranteed to be lexical (i.e. compatible with strcmp).

◆ operator>=()

bool operator>= ( const Name lhs,
const Name rhs 
)

Return false if the specified lhs is ordered before the specified rhs, and true otherwise. The ordering used is stable within the lifetime of a single process and is compatible with operator==(const Name&, const Name&), however this order is neither guaranteed to be consistent across different processes (including repeated runs of the same process), nor guaranteed to be lexical (i.e. compatible with strcmp).