The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
assimobj.h File Reference

This file defines our base object class: AssimObj. More...

#include <projectcommon.h>
Include dependency graph for assimobj.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _AssimObj
 

Macros

#define TRACEREF(obj)   /* nothing */;
 
#define TRACEUNREF(obj)   /* nothing */;
 
#define UNREF(obj)   {TRACEUNREF(obj) (obj)->baseclass.unref(&(obj)->baseclass); (obj) = NULL;}
 
#define UNREF2(obj)   {TRACEUNREF(obj) (obj)->baseclass.baseclass.unref(&(obj)->baseclass.baseclass); (obj) = NULL;}
 
#define UNREF3(obj)   {TRACEUNREF(obj) (obj)->baseclass.baseclass.baseclass.unref(&(obj)->baseclass.baseclass.baseclass); (obj) = NULL;}
 
#define UNREF4(obj)   {TRACEUNREF(obj) (obj)->baseclass.baseclass.baseclass.baseclass.unref(&(obj)->baseclass.baseclass.baseclass.baseclass); (obj) = NULL;}
 
#define REF(obj)   {TRACEREF(obj) (obj)->baseclass.ref(&(obj)->baseclass);}
 
#define REF2(obj)   {TRACEREF(obj) (obj)->baseclass.baseclass.ref(&(obj)->baseclass.baseclass);}
 
#define REF3(obj)   {TRACEREF(obj) (obj)->baseclass.baseclass.baseclass.ref(&(obj)->baseclass.baseclass.baseclass);}
 
#define REF4(obj)   {TRACEREF(obj) (obj)->baseclass.baseclass.baseclass.baseclass.ref(&(obj)->baseclass.baseclass.baseclass.baseclass);}
 
typedef struct _AssimObj AssimObj
 
gboolean badfree
 
WINEXPORT AssimObjassimobj_new (guint objsize)
 
WINEXPORT void _assimobj_finalize (AssimObj *self)
 

Detailed Description

This file defines our base object class: AssimObj.

This class provides reference counting and a toString member function.

This file is part of the Assimilation Project.

Author
Copyright © 2011, 2012 - Alan Robertson alanr.nosp@m.@uni.nosp@m.x.sh
The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/

Definition in file assimobj.h.

Macro Definition Documentation

#define REF2 (   obj)    {TRACEREF(obj) (obj)->baseclass.baseclass.ref(&(obj)->baseclass.baseclass);}
#define REF3 (   obj)    {TRACEREF(obj) (obj)->baseclass.baseclass.baseclass.ref(&(obj)->baseclass.baseclass.baseclass);}

Definition at line 41 of file assimobj.h.

#define REF4 (   obj)    {TRACEREF(obj) (obj)->baseclass.baseclass.baseclass.baseclass.ref(&(obj)->baseclass.baseclass.baseclass.baseclass);}

Definition at line 42 of file assimobj.h.

#define TRACEREF (   obj)    /* nothing */;

Definition at line 31 of file assimobj.h.

#define TRACEUNREF (   obj)    /* nothing */;

Definition at line 32 of file assimobj.h.

#define UNREF (   obj)    {TRACEUNREF(obj) (obj)->baseclass.unref(&(obj)->baseclass); (obj) = NULL;}

Definition at line 35 of file assimobj.h.

Referenced by _addrframe_finalize(), _addrframe_setnetaddr(), _authlistener_got_frameset(), _childprocess_childexit(), _childprocess_toString(), _configcontext_JSON_parse_objandEOF(), _configcontext_JSON_parse_object(), _configcontext_value_finalize(), _configcontext_value_vfinalize(), _discovery_finalize(), _discovery_ghash_destructor(), _frameset_indir_finalize(), _fsproto_fsa(), _fsprotocol_ackseqno(), _fsprotocol_find(), _fsprotocol_protoelem_destroy(), _fsprotocol_receive(), _fsqueue_finalize(), _fsqueue_flush(), _fsqueue_flush1(), _hblistener_finalize(), _hblistener_got_frameset(), _hbsender_finalize(), _hbsender_sendheartbeat(), _ipportframe_finalize(), _jsondiscovery_childwatch(), _jsondiscovery_finalize(), _jsondiscovery_send(), _listener_finalize(), _listener_got_frameset(), _nano_send_rscexitstatus(), _netaddr_hash(), _netgsource_del_listener(), _netgsource_dispatch(), _netio_finalize(), _netio_mcastjoin(), _netio_netaddr_destroy(), _netio_recvframesets(), _pktdata_to_framesetlist(), _reliableudp_finalize(), _reliableudp_recvframesets(), _resource_queue_endnotify(), _resource_queue_Qcmd(), _resource_queue_qelem_finalize(), _resourcecmd_finalize(), _resourcelsb_execute(), _resourcelsb_finalize(), _resourceocf_execute(), _resourceocf_finalize(), _switchdiscovery_dispatch(), address_tests(), cast_frameset_tests(), check_JSON(), childprocess_new(), construct_pcap_frameset(), fakecma_startup(), frameset_construct_packet(), generic_childprocess_test(), gotnetpkt(), main(), nano_initiate_shutdown(), nano_reqconfig(), nano_schedule_discovery(), nano_shutdown(), nano_startupidle(), nanoobey_cancelrscoperation(), nanoobey_dorscoperation(), nanoobey_setconfig(), nanoprobe_report_upstream(), obey_pingpong(), test_childprocess_modenv(), test_invalid_queuecmd(), test_invalid_resourcecmd(), test_safe_ocfops(), test_safe_queue_lsbops(), and test_safe_queue_ocfops().

#define UNREF3 (   obj)    {TRACEUNREF(obj) (obj)->baseclass.baseclass.baseclass.unref(&(obj)->baseclass.baseclass.baseclass); (obj) = NULL;}

Definition at line 37 of file assimobj.h.

Referenced by main().

#define UNREF4 (   obj)    {TRACEUNREF(obj) (obj)->baseclass.baseclass.baseclass.baseclass.unref(&(obj)->baseclass.baseclass.baseclass.baseclass); (obj) = NULL;}

Definition at line 38 of file assimobj.h.