Rhino C++ API
7.26
|
#include <opennurbs_testclass.h>
Public Member Functions | |
ON_TestClass () | |
ON_TestClass (const ON_TestClass &) | |
~ON_TestClass () | |
void | Dump (class ON_TextLog &text_log) const |
ON_TestClass & | operator= (const ON_TestClass &) |
void | SetValue (const ON_wString s) |
const ON_wString | ToString () const |
const ON_wString | Value () const |
Static Public Member Functions | |
static ON__UINT64 | ConstructedCount () |
static ON__UINT64 | CurrentCount () |
static ON__UINT64 | DestructedCount () |
static void | GetCurrentAndConstructedCount (ON__UINT64 &constructed_count, ON__UINT64 ¤t_count) |
Public Attributes | |
const ON__UINT64 | ConstructedAt |
const ON__UINT64 | CopiedFrom |
const ON__UINT64 | SerialNumber |
/ Copyright (c) 1993-2016 Robert McNeel & Associates. All rights reserved. / OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert / McNeel & Associates. / / THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. / ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF / MERCHANTABILITY ARE HEREBY DISCLAIMED. /
/ For complete openNURBS copyright information see http://www.opennurbs.org. / //////////////////////////////////////////////////////////////
ON_TestClass::ON_TestClass | ( | ) |
ON_TestClass::~ON_TestClass | ( | ) |
ON_TestClass::ON_TestClass | ( | const ON_TestClass & | ) |
|
static |
Returns: Number of ON_TestClass instances that have been constructed. Remarks: Thread safe. If you need to know two or more of ConstructedCount(), DestructedCount(), and CurrentCount() the same time, call GetCurrentAndConstructedCount().
|
static |
Returns: Number of ON_TestClass instances that currently exist. Remarks: Thread safe. If you need to know two or more of ConstructedCount(), DestructedCount(), and CurrentCount() the same time, call GetCurrentAndConstructedCount().
|
static |
Returns: Number of ON_TestClass instances that have been destroyed. Remarks: Thread safe. If you need to know two or more of ConstructedCount(), DestructedCount(), and CurrentCount() the same time, call GetCurrentAndConstructedCount().
void ON_TestClass::Dump | ( | class ON_TextLog & | text_log | ) | const |
Returns: String value. Remarks: Thread safe.
|
static |
Parameters: constructed_count - [out] Number of ON_TestClass that have been constructed. current_count - [out] Number of ON_TestClass that currently exist. Remarks: Thread safe.
ON_TestClass& ON_TestClass::operator= | ( | const ON_TestClass & | ) |
void ON_TestClass::SetValue | ( | const ON_wString | s | ) |
Returns: String value. Remarks: Thread safe.
const ON_wString ON_TestClass::ToString | ( | ) | const |
Returns: A string with the format ON_TestClass[<SERIAL_NUMBER>] "<STRING_VALUE>" where <SERIAL_NUMBER> is this->SerialNumber and <STRING_VALUE> is the string returned by this->Value().
Remarks: Thread safe.
const ON_wString ON_TestClass::Value | ( | ) | const |
Returns: String value. Remarks: Thread safe.
const ON__UINT64 ON_TestClass::ConstructedAt |
Time this instance was constructed. Seconds since Jan 1, 1970, UCT from C-runtime time(nullptr).
const ON__UINT64 ON_TestClass::CopiedFrom |
If this class was created by the copy constructor, then CopiedFrom is the serial number of the source class. Otherwise, CopiedFrom is zero.
const ON__UINT64 ON_TestClass::SerialNumber |
The first instance of a ON_TestClass has serial number 1.