Rudiments
Public Member Functions | Static Public Member Functions
shmfile Class Reference

Inherits file.

List of all members.

Public Member Functions

 shmfile ()
 shmfile (const shmfile &s)
shmfileoperator= (const shmfile &s)
virtual ~shmfile ()

Static Public Member Functions

static bool remove (const char *filename)

Detailed Description

The shmfile class provides methods for interacting with POSIX shared memory objects. POSIX shared memory objects may be accessed like files, but reside in shared memory rather than on the filesystem.

For maximum portability, the name of a shmfile should begin with a slash (/) and contain no embedded slashes.


Constructor & Destructor Documentation

shmfile::shmfile ( )

Creates an instance of the shmfile class.

shmfile::shmfile ( const shmfile s)

Creates an instance of the shmfile class that is a copy of "s".

virtual shmfile::~shmfile ( ) [virtual]

Deletes this instance of the shmfile class.


Member Function Documentation

shmfile& shmfile::operator= ( const shmfile s)

Makes this instance of the shmfile class identical to "s".

static bool shmfile::remove ( const char *  filename) [static]

Removes POXIX shared memory object "filename". Returns true on success and false on failure.

Reimplemented from file.