Page Contents

Topics

Classes

LConnectionID Class

#include <Layers/lconnections.h>

Public Functions

LConnectionID()
LConnectionID(int value)
LConnectionID(const LConnectionID& other)
LConnectionID& operator=(const LConnectionID& other)
bool operator<(const LConnectionID& other) const
LConnectionID operator++(int)

Related Non-Members

LConnections

Detailed Description

An LConnectionID represents a connection which is a relationship between two objects where a callback to one object is stored within another to be processed at a later time.

When a connection is established, an LConnectionID can be used to identify it later in case the connection needs to be broken or invalidated.

Member Function Documentation

LConnectionID()

Constructs a connection-ID with a value of 0.

LConnectionID(int value)

Constructs a connection-ID from value.

LConnectionID(const LConnectionID& other)

Constructs a copy of the other connection-ID.

LConnectionID& operator=(const LConnectionID& other)

Assigns the value of the other connection-ID to this.

bool operator<(const LConnectionID& other) const

Returns true if the value of this is less-than the value of the other connection-ID.

LConnectionID operator++(int)

Increments the connection-ID by a single value.

Related Non-Members

LConnections

Typedef for std::map<LConnectionID, std::function<void()>>.