Library: Foundation
Package: Core
Header: Poco/RefCountedObject.h
A base class for objects that employ reference counting based garbage collection.
Reference-counted objects inhibit construction by copying and assignment.
Known Derived Classes: Poco::Data::AbstractExtraction, Poco::Data::AbstractBinding, Poco::Data::AbstractPreparation, Poco::Data::AbstractSessionImpl, Poco::Data::Binding, Poco::Data::Extraction, Poco::Data::PooledSessionHolder, Poco::Data::PooledSessionImpl, Poco::Data::StatementImpl, Poco::Data::SessionImpl, ActiveResultHolder, ActiveRunnableBase, ActiveRunnable, AsyncChannel, Channel, ConsoleChannel, EventLogChannel, FileChannel, FormattingChannel, Formatter, Logger, Notification, NullChannel, OpcomChannel, PatternFormatter, SimpleFileChannel, SplitterChannel, StreamChannel, Task, SyslogChannel, TaskCancelledNotification, TaskNotification, TaskStartedNotification, TaskFinishedNotification, TaskFailedNotification, TaskProgressNotification, TaskCustomNotification, WindowsConsoleChannel, Poco::Net::SecureServerSocketImpl, Poco::Net::SecureStreamSocketImpl, Poco::Net::DatagramSocketImpl, Poco::Net::HTTPServerParams, Poco::Net::ICMPSocketImpl, Poco::Net::ErrorNotification, Poco::Net::TimeoutNotification, Poco::Net::ShutdownNotification, Poco::Net::RawSocketImpl, Poco::Net::RemoteSyslogChannel, Poco::Net::RemoteSyslogListener, Poco::Net::ServerSocketImpl, Poco::Net::SocketNotification, Poco::Net::SocketImpl, Poco::Net::SocketNotifier, Poco::Net::WritableNotification, Poco::Net::ReadableNotification, Poco::Net::StreamSocketImpl, Poco::Net::TCPServerParams, Poco::Util::ConfigurationMapper, Poco::Util::AbstractConfiguration, Poco::Util::FilesystemConfiguration, Poco::Util::Application, Poco::Util::ConfigurationView, Poco::Util::IniFileConfiguration, Poco::Util::IntValidator, Poco::Util::LayeredConfiguration, Poco::Util::LoggingSubsystem, Poco::Util::MapConfiguration, Poco::Util::PropertyFileConfiguration, Poco::Util::ServerApplication, Poco::Util::RegExpValidator, Poco::Util::Subsystem, Poco::Util::SystemConfiguration, Poco::Util::Validator, Poco::Util::WinRegistryConfiguration, Poco::Util::XMLConfiguration
Member Functions: duplicate, referenceCount, release
Creates the RefCountedObject. The initial reference count is one.
virtual ~RefCountedObject();
Destroys the RefCountedObject.
void duplicate() const;
Increments the object's reference count.
int referenceCount() const;
Returns the reference count.
void release() const;
Decrements the object's reference count and deletes the object if the count reaches zero.