Inheritance diagram for StringImp:
Public Methods | |
StringImp (const char *in) | |
StringImp (const NString &str) | |
virtual unsigned long | addRef () |
virtual unsigned long | release () |
virtual long | queryInterface (const Guid &id, void **iPtr) |
virtual const char * | str () |
|
This constructor can be used to construct a StringImp from a raw or const string. This constructor allocates a new buffer an copies the incoming string into it.
|
|
This constructor is used to construct an StringImp from an NString. This version of the constructor leverages the efficient buffer sharing mechanism of the NString to prevent a string copy.
|
|
This function is used to increment the reference count on a component. Each copy of an interface pointer that is in use by a client will have a corresponding reference on the component. Use the SPtr to help manage the references on components in client code. Implements IBase. |
|
This function is used to query the implementing component for other interfaces. The id of the required interface is passed, and the component tests it against the id's of the interfaces that it implements. If there is a match, the component sets the
Implements IBase. |
|
This function is used to increment the reference count on a component. Each copy of an interface pointer that is in use by a client will have a corresponding reference on the component. When the reference count of a component is decremented to zero then the component will Implements IBase. |
|
This function is used to access the actual character buffer controlled by the StringImp. Implements IString. |
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.