utility_reference.xml 251 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540
  1. <?xml version="1.0" standalone="yes"?>
  2. <library-reference id="utilities"><title>Utilities</title><header name="boost/log/utility/exception_handler.hpp">
  3. <para><para>Andrey Semashev </para>
  4. <para>12.07.2009</para>
  5. This header contains tools for exception handlers support in different parts of the library. </para><namespace name="boost">
  6. <namespace name="log">
  7. <class name="exception_handler"><template>
  8. <template-type-parameter name="SequenceT"/>
  9. <template-type-parameter name="HandlerT"/>
  10. </template><description><para>An exception handler functional object. The handler aggregates a user-defined functional object that will be called when one of the specified exception types is caught. </para></description><typedef name="handler_type"><purpose>The exception handler type. </purpose><type>HandlerT</type></typedef>
  11. <typedef name="result_type"><purpose>The handler result type. </purpose><type>void</type></typedef>
  12. <method-group name="public member functions">
  13. <method name="operator()" cv="const"><type>void</type><description><para>Exception launcher. Rethrows the current exception in order to detect its type and pass it to the aggregated function object.</para><para><note><para>Must be called from within a <computeroutput>catch</computeroutput> statement. </para>
  14. </note>
  15. </para></description></method>
  16. </method-group>
  17. <constructor specifiers="explicit"><parameter name="handler"><paramtype>handler_type const &amp;</paramtype></parameter><description><para>Initializing constructor. Creates an exception handler with the specified function object that will receive the exception. </para></description></constructor>
  18. </class><class name="nothrow_exception_handler"><template>
  19. <template-type-parameter name="SequenceT"/>
  20. <template-type-parameter name="HandlerT"/>
  21. </template><inherit access="public">boost::log::exception_handler&lt; SequenceT, HandlerT &gt;</inherit><description><para>A no-throw exception handler functional object. Acts similar to <computeroutput><classname alt="boost::log::exception_handler">exception_handler</classname></computeroutput>, but in case if the exception cannot be handled the exception is not propagated from the handler. Instead the user-defined functional object is called with no parameters. </para></description><typedef name="handler_type"><purpose>The exception handler type. </purpose><type>HandlerT</type></typedef>
  22. <typedef name="result_type"><purpose>The handler result type. </purpose><type>void</type></typedef>
  23. <method-group name="public member functions">
  24. <method name="operator()" cv="const"><type>void</type><description><para>Exception launcher. Rethrows the current exception in order to detect its type and pass it to the aggregated function object. If the type of the exception could not be detected, the user-defined handler is called with no arguments.</para><para><note><para>Must be called from within a <computeroutput>catch</computeroutput> statement. </para>
  25. </note>
  26. </para></description></method>
  27. </method-group>
  28. <constructor specifiers="explicit"><parameter name="handler"><paramtype>handler_type const &amp;</paramtype></parameter><description><para>Initializing constructor. Creates an exception handler with the specified function object that will receive the exception. </para></description></constructor>
  29. </class>
  30. <function name="make_exception_suppressor"><type><classname>nop</classname></type><description><para>The function creates an empty exception handler that effectively suppresses any exception </para></description></function>
  31. <function name="make_exception_handler"><type><classname>exception_handler</classname>&lt; typename HandlerT::exception_types, HandlerT &gt;</type><template>
  32. <template-type-parameter name="HandlerT"/>
  33. </template><parameter name="handler"><paramtype>HandlerT const &amp;</paramtype><description><para>User-defined functional object that will receive exceptions. </para></description></parameter><description><para>The function creates an exception handler functional object. The handler will call to the user-specified functional object with an exception as its argument.</para><para>
  34. <note><para>This form requires the user-defined functional object to have an <computeroutput>exception_types</computeroutput> nested type. This type should be an MPL sequence of all expected exception types. </para>
  35. </note>
  36. </para></description><returns><para>A nullary functional object that should be called from within a <computeroutput>catch</computeroutput> statement.</para>
  37. </returns></function>
  38. <function name="make_exception_handler"><type><classname>nothrow_exception_handler</classname>&lt; typename HandlerT::exception_types, HandlerT &gt;</type><template>
  39. <template-type-parameter name="HandlerT"/>
  40. </template><parameter name="handler"><paramtype>HandlerT const &amp;</paramtype><description><para>User-defined functional object that will receive exceptions. </para></description></parameter><parameter name=""><paramtype>std::nothrow_t const &amp;</paramtype></parameter><description><para>The function creates an exception handler functional object. The handler will call to the user-specified functional object with an exception as its argument. If the exception type cannot be identified, the handler will call the user-defined functor with no arguments, instead of propagating exception to the caller.</para><para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</para><para>
  41. <note><para>This form requires the user-defined functional object to have an <computeroutput>exception_types</computeroutput> nested type. This type should be an MPL sequence of all expected exception types. </para>
  42. </note>
  43. </para></description><returns><para>A nullary functional object that should be called from within a <computeroutput>catch</computeroutput> statement.</para>
  44. </returns></function>
  45. <function name="make_exception_handler"><type><classname>exception_handler</classname>&lt; MPL_sequence_of_ExceptionsT, HandlerT &gt;</type><template>
  46. <template-nontype-parameter name="ExceptionsT"><type>typename...</type></template-nontype-parameter>
  47. <template-type-parameter name="HandlerT"/>
  48. </template><parameter name="handler"><paramtype>HandlerT const &amp;</paramtype><description><para>User-defined functional object that will receive exceptions. </para></description></parameter><description><para>The function creates an exception handler functional object. The handler will call to the user-specified functional object with an exception as its argument. All expected exception types should be specified as first template parameters explicitly, in the order they would be specified in a corresponding <computeroutput>try/catch</computeroutput> statement.</para><para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</para><para>
  49. </para></description><returns><para>A nullary functional object that should be called from within a <computeroutput>catch</computeroutput> statement. </para>
  50. </returns></function>
  51. <function name="make_exception_handler"><type><classname>nothrow_exception_handler</classname>&lt; MPL_sequence_of_ExceptionsT, HandlerT &gt;</type><template>
  52. <template-nontype-parameter name="ExceptionsT"><type>typename...</type></template-nontype-parameter>
  53. <template-type-parameter name="HandlerT"/>
  54. </template><parameter name="handler"><paramtype>HandlerT const &amp;</paramtype><description><para>User-defined functional object that will receive exceptions. </para></description></parameter><parameter name=""><paramtype>std::nothrow_t const &amp;</paramtype></parameter><description><para>The function creates an exception handler functional object. The handler will call to the user-specified functional object with an exception as its argument. If the exception type cannot be identified, the handler will call the user-defined functor with no arguments, instead of propagating exception to the caller. All expected exception types should be specified as first template parameters explicitly, in the order they would be specified in a corresponding <computeroutput>try/catch</computeroutput> statement.</para><para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</para><para>
  55. </para></description><returns><para>A nullary functional object that should be called from within a <computeroutput>catch</computeroutput> statement. </para>
  56. </returns></function>
  57. </namespace>
  58. </namespace>
  59. <macro name="BOOST_LOG_MAX_EXCEPTION_TYPES"><purpose>Maximum number of exception types that can be specified for exception handlers. </purpose></macro>
  60. </header>
  61. <header name="boost/log/utility/formatting_ostream.hpp">
  62. <para><para>Andrey Semashev </para>
  63. <para>11.07.2012</para>
  64. The header contains implementation of a string stream used for log record formatting. </para><namespace name="boost">
  65. <namespace name="log">
  66. <function name="operator&lt;&lt;"><type><emphasis>unspecified</emphasis></type><template>
  67. <template-type-parameter name="StreamT"/>
  68. <template-type-parameter name="T"/>
  69. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter><parameter name="value"><paramtype>T</paramtype></parameter></function>
  70. <function name="operator&lt;&lt;"><type><emphasis>unspecified</emphasis></type><template>
  71. <template-type-parameter name="StreamT"/>
  72. <template-type-parameter name="T"/>
  73. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter><parameter name="value"><paramtype>T const &amp;</paramtype></parameter></function>
  74. <function name="operator&lt;&lt;"><type><emphasis>unspecified</emphasis></type><template>
  75. <template-type-parameter name="StreamT"/>
  76. <template-type-parameter name="T"/>
  77. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter><parameter name="value"><paramtype>T &amp;</paramtype></parameter></function>
  78. <function name="operator&lt;&lt;"><type><emphasis>unspecified</emphasis></type><template>
  79. <template-type-parameter name="StreamT"/>
  80. <template-type-parameter name="T"/>
  81. </template><parameter name="strm"><paramtype>StreamT &amp;&amp;</paramtype></parameter><parameter name="value"><paramtype>T</paramtype></parameter></function>
  82. <function name="operator&lt;&lt;"><type><emphasis>unspecified</emphasis></type><template>
  83. <template-type-parameter name="StreamT"/>
  84. <template-type-parameter name="T"/>
  85. </template><parameter name="strm"><paramtype>StreamT &amp;&amp;</paramtype></parameter><parameter name="value"><paramtype>T const &amp;</paramtype></parameter></function>
  86. <function name="operator&lt;&lt;"><type><emphasis>unspecified</emphasis></type><template>
  87. <template-type-parameter name="StreamT"/>
  88. <template-type-parameter name="T"/>
  89. </template><parameter name="strm"><paramtype>StreamT &amp;&amp;</paramtype></parameter><parameter name="value"><paramtype>T &amp;</paramtype></parameter></function>
  90. </namespace>
  91. </namespace>
  92. </header>
  93. <header name="boost/log/utility/formatting_ostream_fwd.hpp">
  94. <para><para>Andrey Semashev </para>
  95. <para>11.07.2012</para>
  96. The header contains forward declaration of a string stream used for log record formatting. </para><namespace name="boost">
  97. <namespace name="log">
  98. <class name="basic_formatting_ostream"><template>
  99. <template-type-parameter name="CharT"/>
  100. <template-type-parameter name="TraitsT"/>
  101. <template-type-parameter name="AllocatorT"/>
  102. </template><purpose>Stream for log records formatting. </purpose><description><para>Stream wrapper for log records formatting.</para><para>This stream wrapper is used by the library for log record formatting. It implements the standard string stream interface with a few differences:</para><para><itemizedlist>
  103. <listitem><para>It does not derive from standard types <computeroutput>std::basic_ostream</computeroutput>, <computeroutput>std::basic_ios</computeroutput> and <computeroutput>std::ios_base</computeroutput>, although it tries to implement their interfaces closely. There are a few small differences, mostly regarding <computeroutput>rdbuf</computeroutput> and <computeroutput>str</computeroutput> signatures, as well as the supported insertion operator overloads. The actual wrapped stream can be accessed through the <computeroutput>stream</computeroutput> methods. </para>
  104. </listitem>
  105. <listitem><para>By default, <computeroutput>bool</computeroutput> values are formatted using alphabetical representation rather than numeric. </para>
  106. </listitem>
  107. <listitem><para>The stream supports writing strings of character types different from the stream character type. The stream will perform character code conversion as needed using the imbued locale. </para>
  108. </listitem>
  109. <listitem><para>The stream operates on an external string object rather than on the embedded one. The string can be attached or detached from the stream dynamically.</para>
  110. </listitem>
  111. </itemizedlist>
  112. Although <computeroutput><classname alt="boost::log::basic_formatting_ostream">basic_formatting_ostream</classname></computeroutput> does not derive from <computeroutput>std::basic_ostream</computeroutput>, users are not required to add special overloads of <computeroutput>operator&lt;&lt;</computeroutput> for it since the stream will by default reuse the operators for <computeroutput>std::basic_ostream</computeroutput>. However, one can define special overloads of <computeroutput>operator&lt;&lt;</computeroutput> for <computeroutput><classname alt="boost::log::basic_formatting_ostream">basic_formatting_ostream</classname></computeroutput> if a certain type needs special formatting when output to log. </para></description><method-group name="public member functions">
  113. <method name="attach"><type>void</type><parameter name="str"><paramtype>string_type &amp;</paramtype><description><para>The string buffer to attach. </para></description></parameter><description><para>Attaches the stream to the string. The string will be used to store the formatted characters.</para><para>
  114. </para></description></method>
  115. <method name="detach"><type>void</type><description><para>Detaches the stream from the string. Any buffered data is flushed to the string. </para></description></method>
  116. <method name="str" cv="const"><type>string_type const &amp;</type><description><para>
  117. </para></description><returns><para>Reference to the attached string. The string must be attached before calling this method. </para>
  118. </returns></method>
  119. <method name="stream"><type>ostream_type &amp;</type><description><para>
  120. </para></description><returns><para>Reference to the wrapped stream </para>
  121. </returns></method>
  122. <method name="stream" cv="const"><type>ostream_type const &amp;</type><description><para>
  123. </para></description><returns><para>Reference to the wrapped stream </para>
  124. </returns></method>
  125. <method name="flags" cv="const"><type>fmtflags</type></method>
  126. <method name="flags"><type>fmtflags</type><parameter name="f"><paramtype>fmtflags</paramtype></parameter></method>
  127. <method name="setf"><type>fmtflags</type><parameter name="f"><paramtype>fmtflags</paramtype></parameter></method>
  128. <method name="setf"><type>fmtflags</type><parameter name="f"><paramtype>fmtflags</paramtype></parameter><parameter name="mask"><paramtype>fmtflags</paramtype></parameter></method>
  129. <method name="unsetf"><type>void</type><parameter name="f"><paramtype>fmtflags</paramtype></parameter></method>
  130. <method name="precision" cv="const"><type>std::streamsize</type></method>
  131. <method name="precision"><type>std::streamsize</type><parameter name="p"><paramtype>std::streamsize</paramtype></parameter></method>
  132. <method name="width" cv="const"><type>std::streamsize</type></method>
  133. <method name="width"><type>std::streamsize</type><parameter name="w"><paramtype>std::streamsize</paramtype></parameter></method>
  134. <method name="getloc" cv="const"><type>std::locale</type></method>
  135. <method name="imbue"><type>std::locale</type><parameter name="loc"><paramtype>std::locale const &amp;</paramtype></parameter></method>
  136. <method name="iword"><type>long &amp;</type><parameter name="index"><paramtype>int</paramtype></parameter></method>
  137. <method name="pword"><type>void *&amp;</type><parameter name="index"><paramtype>int</paramtype></parameter></method>
  138. <method name="register_callback"><type>void</type><parameter name="fn"><paramtype>event_callback</paramtype></parameter><parameter name="index"><paramtype>int</paramtype></parameter></method>
  139. <method name="conversion-operator" cv="const" specifiers="explicit"><type>bool</type></method>
  140. <method name="operator!" cv="const"><type>bool</type></method>
  141. <method name="rdstate" cv="const"><type>iostate</type></method>
  142. <method name="clear"><type>void</type><parameter name="state"><paramtype>iostate</paramtype><default>goodbit</default></parameter></method>
  143. <method name="setstate"><type>void</type><parameter name="state"><paramtype>iostate</paramtype></parameter></method>
  144. <method name="good" cv="const"><type>bool</type></method>
  145. <method name="eof" cv="const"><type>bool</type></method>
  146. <method name="fail" cv="const"><type>bool</type></method>
  147. <method name="bad" cv="const"><type>bool</type></method>
  148. <method name="exceptions" cv="const"><type>iostate</type></method>
  149. <method name="exceptions"><type>void</type><parameter name="s"><paramtype>iostate</paramtype></parameter></method>
  150. <method name="tie" cv="const"><type>ostream_type *</type></method>
  151. <method name="tie"><type>ostream_type *</type><parameter name="strm"><paramtype>ostream_type *</paramtype></parameter></method>
  152. <method name="rdbuf" cv="const"><type>streambuf_type *</type></method>
  153. <method name="copyfmt"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="rhs"><paramtype>std::basic_ios&lt; char_type, traits_type &gt; &amp;</paramtype></parameter></method>
  154. <method name="copyfmt"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="rhs"><paramtype><classname>basic_formatting_ostream</classname> &amp;</paramtype></parameter></method>
  155. <method name="fill" cv="const"><type>char_type</type></method>
  156. <method name="fill"><type>char_type</type><parameter name="ch"><paramtype>char_type</paramtype></parameter></method>
  157. <method name="narrow" cv="const"><type>char</type><parameter name="ch"><paramtype>char_type</paramtype></parameter><parameter name="def"><paramtype>char</paramtype></parameter></method>
  158. <method name="widen" cv="const"><type>char_type</type><parameter name="ch"><paramtype>char</paramtype></parameter></method>
  159. <method name="flush"><type><classname>basic_formatting_ostream</classname> &amp;</type></method>
  160. <method name="tellp"><type>pos_type</type></method>
  161. <method name="seekp"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="pos"><paramtype>pos_type</paramtype></parameter></method>
  162. <method name="seekp"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="off"><paramtype>off_type</paramtype></parameter><parameter name="dir"><paramtype>std::ios_base::seekdir</paramtype></parameter></method>
  163. <method name="put"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="c"><paramtype>char_type</paramtype></parameter></method>
  164. <method name="put"><type><emphasis>unspecified</emphasis></type><template>
  165. <template-type-parameter name="OtherCharT"/>
  166. </template><parameter name="c"><paramtype>OtherCharT</paramtype></parameter></method>
  167. <method name="write"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="p"><paramtype>const char_type *</paramtype></parameter><parameter name="size"><paramtype>std::streamsize</paramtype></parameter></method>
  168. <method name="write"><type><emphasis>unspecified</emphasis></type><template>
  169. <template-type-parameter name="OtherCharT"/>
  170. </template><parameter name="p"><paramtype>const OtherCharT *</paramtype></parameter><parameter name="size"><paramtype>std::streamsize</paramtype></parameter></method>
  171. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="manip"><paramtype>ios_base_manip</paramtype></parameter></method>
  172. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="manip"><paramtype>basic_ios_manip</paramtype></parameter></method>
  173. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="manip"><paramtype>stream_manip</paramtype></parameter></method>
  174. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="c"><paramtype>char</paramtype></parameter></method>
  175. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="p"><paramtype>const char *</paramtype></parameter></method>
  176. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="c"><paramtype>wchar_t</paramtype></parameter></method>
  177. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="p"><paramtype>const wchar_t *</paramtype></parameter></method>
  178. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="c"><paramtype>char16_t</paramtype></parameter></method>
  179. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="p"><paramtype>const char16_t *</paramtype></parameter></method>
  180. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="c"><paramtype>char32_t</paramtype></parameter></method>
  181. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="p"><paramtype>const char32_t *</paramtype></parameter></method>
  182. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>bool</paramtype></parameter></method>
  183. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>signed char</paramtype></parameter></method>
  184. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>unsigned char</paramtype></parameter></method>
  185. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>short</paramtype></parameter></method>
  186. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>unsigned short</paramtype></parameter></method>
  187. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>int</paramtype></parameter></method>
  188. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>unsigned int</paramtype></parameter></method>
  189. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>long</paramtype></parameter></method>
  190. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>unsigned long</paramtype></parameter></method>
  191. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>long long</paramtype></parameter></method>
  192. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>unsigned long long</paramtype></parameter></method>
  193. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>float</paramtype></parameter></method>
  194. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>double</paramtype></parameter></method>
  195. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="value"><paramtype>long double</paramtype></parameter></method>
  196. <method name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="buf"><paramtype>std::basic_streambuf&lt; char_type, traits_type &gt; *</paramtype></parameter></method>
  197. </method-group>
  198. <constructor><description><para>Default constructor. Creates an empty record that is equivalent to the invalid record handle. The stream capability is not available after construction.</para><para>
  199. </para></description><postconditions><para><computeroutput>!*this == true</computeroutput> </para>
  200. </postconditions></constructor>
  201. <constructor specifiers="explicit"><parameter name="str"><paramtype>string_type &amp;</paramtype><description><para>The string buffer to attach. </para></description></parameter><description><para>Initializing constructor. Attaches the string to the constructed stream. The string will be used to store the formatted characters.</para><para>
  202. </para></description><postconditions><para><computeroutput>!*this == false</computeroutput> </para>
  203. </postconditions></constructor>
  204. <destructor><description><para>Destructor. Destroys the record, releases any sinks and attribute values that were involved in processing this record. </para></description></destructor>
  205. <method-group name="public static functions">
  206. <method name="xalloc" specifiers="static"><type>int</type></method>
  207. <method name="sync_with_stdio" specifiers="static"><type>bool</type><parameter name="sync"><paramtype>bool</paramtype><default>true</default></parameter></method>
  208. </method-group>
  209. <method-group name="protected member functions">
  210. <method name="init_stream"><type>void</type></method>
  211. </method-group>
  212. <method-group name="private member functions">
  213. <method name="formatted_write"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="p"><paramtype>const char_type *</paramtype></parameter><parameter name="size"><paramtype>std::streamsize</paramtype></parameter></method>
  214. <method name="formatted_write"><type><classname>basic_formatting_ostream</classname> &amp;</type><template>
  215. <template-type-parameter name="OtherCharT"/>
  216. </template><parameter name="p"><paramtype>const OtherCharT *</paramtype></parameter><parameter name="size"><paramtype>std::streamsize</paramtype></parameter></method>
  217. <method name="aligned_write"><type>void</type><parameter name="p"><paramtype>const char_type *</paramtype></parameter><parameter name="size"><paramtype>std::streamsize</paramtype></parameter></method>
  218. <method name="aligned_write"><type>void</type><template>
  219. <template-type-parameter name="OtherCharT"/>
  220. </template><parameter name="p"><paramtype>const OtherCharT *</paramtype></parameter><parameter name="size"><paramtype>std::streamsize</paramtype></parameter></method>
  221. </method-group>
  222. <constructor cv="= delete"><parameter name="that"><paramtype><classname>basic_formatting_ostream</classname> const &amp;</paramtype></parameter><purpose>Copy constructor (closed) </purpose></constructor>
  223. <copy-assignment cv="= delete"><type><classname>basic_formatting_ostream</classname> &amp;</type><parameter name="that"><paramtype><classname>basic_formatting_ostream</classname> const &amp;</paramtype></parameter><purpose>Assignment (closed) </purpose></copy-assignment>
  224. </class><typedef name="formatting_ostream"><type><classname>basic_formatting_ostream</classname>&lt; char &gt;</type></typedef>
  225. <typedef name="wformatting_ostream"><type><classname>basic_formatting_ostream</classname>&lt; wchar_t &gt;</type></typedef>
  226. </namespace>
  227. </namespace>
  228. </header>
  229. <header name="boost/log/utility/functional.hpp">
  230. <para><para>Andrey Semashev </para>
  231. <para>30.03.2008</para>
  232. This header includes all functional helpers. </para></header>
  233. <header name="boost/log/utility/functional/as_action.hpp">
  234. <para><para>Andrey Semashev </para>
  235. <para>30.03.2008</para>
  236. This header contains function object adapter for compatibility with Boost.Spirit actions interface requirements. </para><namespace name="boost">
  237. <namespace name="log">
  238. <struct name="as_action_adapter"><template>
  239. <template-type-parameter name="FunT"/>
  240. </template><purpose>Function object adapter for Boost.Spirit actions. </purpose><typedef name="result_type"><type>FunT::result_type</type></typedef>
  241. <method-group name="public member functions">
  242. <method name="operator()" cv="const"><type>result_type</type><template>
  243. <template-type-parameter name="AttributeT"/>
  244. <template-type-parameter name="ContextT"/>
  245. </template><parameter name="attr"><paramtype>AttributeT const &amp;</paramtype></parameter><parameter name="ctx"><paramtype>ContextT const &amp;</paramtype></parameter><parameter name="pass"><paramtype>bool &amp;</paramtype></parameter></method>
  246. </method-group>
  247. <constructor specifiers="explicit"><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter></constructor>
  248. </struct>
  249. <function name="as_action"><type><classname>as_action_adapter</classname>&lt; FunT &gt;</type><template>
  250. <template-type-parameter name="FunT"/>
  251. </template><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter></function>
  252. </namespace>
  253. </namespace>
  254. </header>
  255. <header name="boost/log/utility/functional/begins_with.hpp">
  256. <para><para>Andrey Semashev </para>
  257. <para>30.03.2008</para>
  258. This header contains a predicate for checking if the provided string begins with a substring. </para><namespace name="boost">
  259. <namespace name="log">
  260. <struct name="begins_with_fun"><purpose>The <computeroutput>begins_with</computeroutput> functor. </purpose><typedef name="result_type"><type>bool</type></typedef>
  261. <method-group name="public member functions">
  262. <method name="operator()" cv="const"><type>bool</type><template>
  263. <template-type-parameter name="T"/>
  264. <template-type-parameter name="U"/>
  265. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  266. </method-group>
  267. </struct>
  268. </namespace>
  269. </namespace>
  270. </header>
  271. <header name="boost/log/utility/functional/bind.hpp">
  272. <para><para>Andrey Semashev </para>
  273. <para>30.03.2008</para>
  274. This header contains function object adapters. This is a lightweight alternative to what Boost.Phoenix and Boost.Bind provides. </para><namespace name="boost">
  275. <namespace name="log">
  276. <struct name="binder1st"><template>
  277. <template-type-parameter name="FunT"/>
  278. <template-type-parameter name="FirstArgT"/>
  279. </template><inherit access="private">FunT</inherit><purpose>First argument binder. </purpose><typedef name="result_type"><type>FunT::result_type</type></typedef>
  280. <method-group name="public member functions">
  281. <method name="operator()" cv="const"><type>result_type</type></method>
  282. <method name="operator()" cv="const"><type>result_type</type><template>
  283. <template-type-parameter name="T0"/>
  284. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter></method>
  285. <method name="operator()" cv="const"><type>result_type</type><template>
  286. <template-type-parameter name="T0"/>
  287. <template-type-parameter name="T1"/>
  288. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter><parameter name="arg1"><paramtype>T1 const &amp;</paramtype></parameter></method>
  289. </method-group>
  290. <constructor><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><parameter name="arg"><paramtype><emphasis>unspecified</emphasis></paramtype></parameter></constructor>
  291. </struct><struct-specialization name="binder1st"><template>
  292. <template-type-parameter name="FunT"/>
  293. <template-type-parameter name="FirstArgT"/>
  294. </template><specialization><template-arg>FunT &amp;</template-arg><template-arg>FirstArgT</template-arg></specialization><purpose>First argument binder. </purpose><typedef name="result_type"><type>remove_cv&lt; FunT &gt;::type::result_type</type></typedef>
  295. <method-group name="public member functions">
  296. <method name="operator()" cv="const"><type>result_type</type></method>
  297. <method name="operator()" cv="const"><type>result_type</type><template>
  298. <template-type-parameter name="T0"/>
  299. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter></method>
  300. <method name="operator()" cv="const"><type>result_type</type><template>
  301. <template-type-parameter name="T0"/>
  302. <template-type-parameter name="T1"/>
  303. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter><parameter name="arg1"><paramtype>T1 const &amp;</paramtype></parameter></method>
  304. </method-group>
  305. <constructor><parameter name="fun"><paramtype>FunT &amp;</paramtype></parameter><parameter name="arg"><paramtype><emphasis>unspecified</emphasis></paramtype></parameter></constructor>
  306. </struct-specialization><struct name="binder2nd"><template>
  307. <template-type-parameter name="FunT"/>
  308. <template-type-parameter name="SecondArgT"/>
  309. </template><inherit access="private">FunT</inherit><purpose>Second argument binder. </purpose><typedef name="result_type"><type>FunT::result_type</type></typedef>
  310. <method-group name="public member functions">
  311. <method name="operator()" cv="const"><type>result_type</type><template>
  312. <template-type-parameter name="T"/>
  313. </template><parameter name="arg"><paramtype>T const &amp;</paramtype></parameter></method>
  314. <method name="operator()" cv="const"><type>result_type</type><template>
  315. <template-type-parameter name="T0"/>
  316. <template-type-parameter name="T1"/>
  317. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter><parameter name="arg1"><paramtype>T1 const &amp;</paramtype></parameter></method>
  318. </method-group>
  319. <constructor><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><parameter name="arg"><paramtype><emphasis>unspecified</emphasis></paramtype></parameter></constructor>
  320. </struct><struct-specialization name="binder2nd"><template>
  321. <template-type-parameter name="FunT"/>
  322. <template-type-parameter name="SecondArgT"/>
  323. </template><specialization><template-arg>FunT &amp;</template-arg><template-arg>SecondArgT</template-arg></specialization><purpose>Second argument binder. </purpose><typedef name="result_type"><type>remove_cv&lt; FunT &gt;::type::result_type</type></typedef>
  324. <method-group name="public member functions">
  325. <method name="operator()" cv="const"><type>result_type</type><template>
  326. <template-type-parameter name="T"/>
  327. </template><parameter name="arg"><paramtype>T const &amp;</paramtype></parameter></method>
  328. <method name="operator()" cv="const"><type>result_type</type><template>
  329. <template-type-parameter name="T0"/>
  330. <template-type-parameter name="T1"/>
  331. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter><parameter name="arg1"><paramtype>T1 const &amp;</paramtype></parameter></method>
  332. </method-group>
  333. <constructor><parameter name="fun"><paramtype>FunT &amp;</paramtype></parameter><parameter name="arg"><paramtype><emphasis>unspecified</emphasis></paramtype></parameter></constructor>
  334. </struct-specialization><struct name="binder3rd"><template>
  335. <template-type-parameter name="FunT"/>
  336. <template-type-parameter name="ThirdArgT"/>
  337. </template><inherit access="private">FunT</inherit><purpose>Third argument binder. </purpose><typedef name="result_type"><type>FunT::result_type</type></typedef>
  338. <method-group name="public member functions">
  339. <method name="operator()" cv="const"><type>result_type</type><template>
  340. <template-type-parameter name="T0"/>
  341. <template-type-parameter name="T1"/>
  342. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter><parameter name="arg1"><paramtype>T1 const &amp;</paramtype></parameter></method>
  343. </method-group>
  344. <constructor><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><parameter name="arg"><paramtype><emphasis>unspecified</emphasis></paramtype></parameter></constructor>
  345. </struct><struct-specialization name="binder3rd"><template>
  346. <template-type-parameter name="FunT"/>
  347. <template-type-parameter name="ThirdArgT"/>
  348. </template><specialization><template-arg>FunT &amp;</template-arg><template-arg>ThirdArgT</template-arg></specialization><purpose>Third argument binder. </purpose><typedef name="result_type"><type>remove_cv&lt; FunT &gt;::type::result_type</type></typedef>
  349. <method-group name="public member functions">
  350. <method name="operator()" cv="const"><type>result_type</type><template>
  351. <template-type-parameter name="T0"/>
  352. <template-type-parameter name="T1"/>
  353. </template><parameter name="arg0"><paramtype>T0 const &amp;</paramtype></parameter><parameter name="arg1"><paramtype>T1 const &amp;</paramtype></parameter></method>
  354. </method-group>
  355. <constructor><parameter name="fun"><paramtype>FunT &amp;</paramtype></parameter><parameter name="arg"><paramtype><emphasis>unspecified</emphasis></paramtype></parameter></constructor>
  356. </struct-specialization>
  357. <function name="bind1st"><type><classname>binder1st</classname>&lt; FunT, FirstArgT &gt;</type><template>
  358. <template-type-parameter name="FunT"/>
  359. <template-type-parameter name="FirstArgT"/>
  360. </template><parameter name="fun"><paramtype>FunT</paramtype></parameter><parameter name="arg"><paramtype>FirstArgT const &amp;</paramtype></parameter></function>
  361. <function name="bind1st"><type><classname>binder1st</classname>&lt; FunT, FirstArgT &gt;</type><template>
  362. <template-type-parameter name="FunT"/>
  363. <template-type-parameter name="FirstArgT"/>
  364. </template><parameter name="fun"><paramtype>FunT</paramtype></parameter><parameter name="arg"><paramtype>FirstArgT &amp;</paramtype></parameter></function>
  365. <function name="bind2nd"><type><classname>binder2nd</classname>&lt; FunT, SecondArgT &gt;</type><template>
  366. <template-type-parameter name="FunT"/>
  367. <template-type-parameter name="SecondArgT"/>
  368. </template><parameter name="fun"><paramtype>FunT</paramtype></parameter><parameter name="arg"><paramtype>SecondArgT const &amp;</paramtype></parameter></function>
  369. <function name="bind2nd"><type><classname>binder2nd</classname>&lt; FunT, SecondArgT &gt;</type><template>
  370. <template-type-parameter name="FunT"/>
  371. <template-type-parameter name="SecondArgT"/>
  372. </template><parameter name="fun"><paramtype>FunT</paramtype></parameter><parameter name="arg"><paramtype>SecondArgT &amp;</paramtype></parameter></function>
  373. <function name="bind3rd"><type><classname>binder3rd</classname>&lt; FunT, ThirdArgT &gt;</type><template>
  374. <template-type-parameter name="FunT"/>
  375. <template-type-parameter name="ThirdArgT"/>
  376. </template><parameter name="fun"><paramtype>FunT</paramtype></parameter><parameter name="arg"><paramtype>ThirdArgT const &amp;</paramtype></parameter></function>
  377. <function name="bind3rd"><type><classname>binder3rd</classname>&lt; FunT, ThirdArgT &gt;</type><template>
  378. <template-type-parameter name="FunT"/>
  379. <template-type-parameter name="ThirdArgT"/>
  380. </template><parameter name="fun"><paramtype>FunT</paramtype></parameter><parameter name="arg"><paramtype>ThirdArgT &amp;</paramtype></parameter></function>
  381. </namespace>
  382. </namespace>
  383. </header>
  384. <header name="boost/log/utility/functional/bind_assign.hpp">
  385. <para><para>Andrey Semashev </para>
  386. <para>30.03.2008</para>
  387. This header contains a function object that assigns the received value to the bound object. This is a lightweight alternative to what Boost.Phoenix and Boost.Lambda provides. </para><namespace name="boost">
  388. <namespace name="log">
  389. <struct name="assign_fun"><purpose>The function object that assigns its second operand to the first one. </purpose><typedef name="result_type"><type>void</type></typedef>
  390. <method-group name="public member functions">
  391. <method name="operator()" cv="const"><type>void</type><template>
  392. <template-type-parameter name="LeftT"/>
  393. <template-type-parameter name="RightT"/>
  394. </template><parameter name="assignee"><paramtype>LeftT &amp;</paramtype></parameter><parameter name="val"><paramtype>RightT const &amp;</paramtype></parameter></method>
  395. </method-group>
  396. </struct>
  397. <function name="bind_assign"><type><classname>binder1st</classname>&lt; <classname>assign_fun</classname>, AssigneeT &amp; &gt;</type><template>
  398. <template-type-parameter name="AssigneeT"/>
  399. </template><parameter name="assignee"><paramtype>AssigneeT &amp;</paramtype></parameter></function>
  400. </namespace>
  401. </namespace>
  402. </header>
  403. <header name="boost/log/utility/functional/bind_output.hpp">
  404. <para><para>Andrey Semashev </para>
  405. <para>30.03.2008</para>
  406. This header contains a function object that puts the received value to the bound stream. This is a lightweight alternative to what Boost.Phoenix and Boost.Lambda provides. </para><namespace name="boost">
  407. <namespace name="log">
  408. <struct name="output_fun"><purpose>The function object that outputs its second operand to the first one. </purpose><typedef name="result_type"><type>void</type></typedef>
  409. <method-group name="public member functions">
  410. <method name="operator()" cv="const"><type>void</type><template>
  411. <template-type-parameter name="StreamT"/>
  412. <template-type-parameter name="T"/>
  413. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter><parameter name="val"><paramtype>T const &amp;</paramtype></parameter></method>
  414. </method-group>
  415. </struct>
  416. <function name="bind_output"><type><classname>binder1st</classname>&lt; <classname>output_fun</classname>, StreamT &amp; &gt;</type><template>
  417. <template-type-parameter name="StreamT"/>
  418. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter></function>
  419. </namespace>
  420. </namespace>
  421. </header>
  422. <header name="boost/log/utility/functional/bind_to_log.hpp">
  423. <para><para>Andrey Semashev </para>
  424. <para>06.11.2012</para>
  425. This header contains a function object that puts the received value to the bound stream using the <computeroutput>to_log</computeroutput> manipulator. This is a lightweight alternative to what Boost.Phoenix and Boost.Lambda provides. </para><namespace name="boost">
  426. <namespace name="log">
  427. <struct name="to_log_fun"><template>
  428. <template-type-parameter name="TagT"><default>void</default></template-type-parameter>
  429. </template><purpose>The function object that outputs its second operand to the first one. </purpose><typedef name="result_type"><type>void</type></typedef>
  430. <method-group name="public member functions">
  431. <method name="operator()" cv="const"><type>void</type><template>
  432. <template-type-parameter name="StreamT"/>
  433. <template-type-parameter name="T"/>
  434. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter><parameter name="val"><paramtype>T const &amp;</paramtype></parameter></method>
  435. </method-group>
  436. </struct><struct-specialization name="to_log_fun"><template>
  437. </template><specialization><template-arg>void</template-arg></specialization><purpose>The function object that outputs its second operand to the first one. </purpose><typedef name="result_type"><type>void</type></typedef>
  438. <method-group name="public member functions">
  439. <method name="operator()" cv="const"><type>void</type><template>
  440. <template-type-parameter name="StreamT"/>
  441. <template-type-parameter name="T"/>
  442. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter><parameter name="val"><paramtype>T const &amp;</paramtype></parameter></method>
  443. </method-group>
  444. </struct-specialization>
  445. <function name="bind_to_log"><type><classname>binder1st</classname>&lt; <classname>to_log_fun</classname>&lt; &gt;, StreamT &amp; &gt;</type><template>
  446. <template-type-parameter name="StreamT"/>
  447. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter></function>
  448. <function name="bind_to_log"><type><classname>binder1st</classname>&lt; <classname>to_log_fun</classname>&lt; TagT &gt;, StreamT &amp; &gt;</type><template>
  449. <template-type-parameter name="TagT"/>
  450. <template-type-parameter name="StreamT"/>
  451. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter></function>
  452. </namespace>
  453. </namespace>
  454. </header>
  455. <header name="boost/log/utility/functional/contains.hpp">
  456. <para><para>Andrey Semashev </para>
  457. <para>30.03.2008</para>
  458. This header contains a predicate for checking if the provided string contains a substring. </para><namespace name="boost">
  459. <namespace name="log">
  460. <struct name="contains_fun"><purpose>The <computeroutput>contains</computeroutput> functor. </purpose><typedef name="result_type"><type>bool</type></typedef>
  461. <method-group name="public member functions">
  462. <method name="operator()" cv="const"><type>bool</type><template>
  463. <template-type-parameter name="T"/>
  464. <template-type-parameter name="U"/>
  465. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  466. </method-group>
  467. </struct>
  468. </namespace>
  469. </namespace>
  470. </header>
  471. <header name="boost/log/utility/functional/ends_with.hpp">
  472. <para><para>Andrey Semashev </para>
  473. <para>30.03.2008</para>
  474. This header contains a predicate for checking if the provided string ends with a substring. </para><namespace name="boost">
  475. <namespace name="log">
  476. <struct name="ends_with_fun"><purpose>The <computeroutput>ends_with</computeroutput> functor. </purpose><typedef name="result_type"><type>bool</type></typedef>
  477. <method-group name="public member functions">
  478. <method name="operator()" cv="const"><type>bool</type><template>
  479. <template-type-parameter name="T"/>
  480. <template-type-parameter name="U"/>
  481. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  482. </method-group>
  483. </struct>
  484. </namespace>
  485. </namespace>
  486. </header>
  487. <header name="boost/log/utility/functional/fun_ref.hpp">
  488. <para><para>Andrey Semashev </para>
  489. <para>30.03.2008</para>
  490. This header contains function object reference adapter. The adapter stores a reference to external function object and forwards all calls to the referred function. </para><namespace name="boost">
  491. <namespace name="log">
  492. <struct name="function_reference_wrapper"><template>
  493. <template-type-parameter name="FunT"/>
  494. </template><purpose>Reference wrapper for function objects. </purpose><typedef name="result_type"><type>FunT::result_type</type></typedef>
  495. <method-group name="public member functions">
  496. <method name="operator()" cv="const"><type>result_type</type></method>
  497. <method name="operator()" cv="const"><type>result_type</type><template>
  498. <template-nontype-parameter name="ArgsT"><type>typename...</type></template-nontype-parameter>
  499. </template><parameter name="args"><paramtype>ArgsT const &amp;...</paramtype></parameter></method>
  500. </method-group>
  501. <constructor specifiers="explicit"><parameter name="fun"><paramtype>FunT &amp;</paramtype></parameter></constructor>
  502. </struct>
  503. <function name="fun_ref"><type><classname>function_reference_wrapper</classname>&lt; FunT &gt;</type><template>
  504. <template-type-parameter name="FunT"/>
  505. </template><parameter name="fun"><paramtype>FunT &amp;</paramtype></parameter></function>
  506. </namespace>
  507. </namespace>
  508. </header>
  509. <header name="boost/log/utility/functional/in_range.hpp">
  510. <para><para>Andrey Semashev </para>
  511. <para>30.03.2008</para>
  512. This header contains a predicate for checking if the provided value is within a half-open range. </para><namespace name="boost">
  513. <namespace name="log">
  514. <struct name="in_range_fun"><purpose>The in_range functor. </purpose><typedef name="result_type"><type>bool</type></typedef>
  515. <method-group name="public member functions">
  516. <method name="operator()" cv="const"><type>bool</type><template>
  517. <template-type-parameter name="T"/>
  518. <template-type-parameter name="U"/>
  519. </template><parameter name="value"><paramtype>T const &amp;</paramtype></parameter><parameter name="rng"><paramtype>std::pair&lt; U, U &gt; const &amp;</paramtype></parameter></method>
  520. </method-group>
  521. <method-group name="private static functions">
  522. <method name="op" specifiers="static"><type>bool</type><template>
  523. <template-type-parameter name="T"/>
  524. <template-type-parameter name="U"/>
  525. </template><parameter name="value"><paramtype>T const &amp;</paramtype></parameter><parameter name="rng"><paramtype>std::pair&lt; U, U &gt; const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::false_ const &amp;</paramtype></parameter></method>
  526. <method name="op" specifiers="static"><type>bool</type><template>
  527. <template-type-parameter name="T"/>
  528. <template-type-parameter name="U"/>
  529. </template><parameter name="value"><paramtype>T const &amp;</paramtype></parameter><parameter name="rng"><paramtype>std::pair&lt; U, U &gt; const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::true_ const &amp;</paramtype></parameter></method>
  530. </method-group>
  531. </struct>
  532. </namespace>
  533. </namespace>
  534. </header>
  535. <header name="boost/log/utility/functional/logical.hpp">
  536. <para><para>Andrey Semashev </para>
  537. <para>30.03.2008</para>
  538. This header contains logical predicates for value comparison, analogous to <computeroutput>std::less</computeroutput>, <computeroutput>std::greater</computeroutput> and others. The main difference from the standard equivalents is that the predicates defined in this header are not templates and therefore do not require a fixed argument type. Furthermore, both arguments may have different types, in which case the comparison is performed without type conversion.</para><para><note><para>In case if arguments are integral, the conversion is performed according to the standard C++ rules in order to avoid warnings from the compiler. </para>
  539. </note>
  540. </para><namespace name="boost">
  541. <namespace name="log">
  542. <struct name="equal_to"><purpose>Equality predicate. </purpose><typedef name="result_type"><type>bool</type></typedef>
  543. <method-group name="public member functions">
  544. <method name="operator()" cv="const"><type>bool</type><template>
  545. <template-type-parameter name="T"/>
  546. <template-type-parameter name="U"/>
  547. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  548. </method-group>
  549. <method-group name="private static functions">
  550. <method name="op" specifiers="static"><type>bool</type><template>
  551. <template-type-parameter name="T"/>
  552. <template-type-parameter name="U"/>
  553. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::false_ const &amp;</paramtype></parameter></method>
  554. <method name="op" specifiers="static"><type>bool</type><template>
  555. <template-type-parameter name="T"/>
  556. <template-type-parameter name="U"/>
  557. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::true_ const &amp;</paramtype></parameter></method>
  558. </method-group>
  559. </struct><struct name="greater"><purpose>Greater predicate. </purpose><typedef name="result_type"><type>bool</type></typedef>
  560. <method-group name="public member functions">
  561. <method name="operator()" cv="const"><type>bool</type><template>
  562. <template-type-parameter name="T"/>
  563. <template-type-parameter name="U"/>
  564. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  565. </method-group>
  566. <method-group name="private static functions">
  567. <method name="op" specifiers="static"><type>bool</type><template>
  568. <template-type-parameter name="T"/>
  569. <template-type-parameter name="U"/>
  570. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::false_ const &amp;</paramtype></parameter></method>
  571. <method name="op" specifiers="static"><type>bool</type><template>
  572. <template-type-parameter name="T"/>
  573. <template-type-parameter name="U"/>
  574. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::true_ const &amp;</paramtype></parameter></method>
  575. </method-group>
  576. </struct><struct name="greater_equal"><purpose>Greater or equal predicate. </purpose><typedef name="result_type"><type>bool</type></typedef>
  577. <method-group name="public member functions">
  578. <method name="operator()" cv="const"><type>bool</type><template>
  579. <template-type-parameter name="T"/>
  580. <template-type-parameter name="U"/>
  581. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  582. </method-group>
  583. <method-group name="private static functions">
  584. <method name="op" specifiers="static"><type>bool</type><template>
  585. <template-type-parameter name="T"/>
  586. <template-type-parameter name="U"/>
  587. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::false_ const &amp;</paramtype></parameter></method>
  588. <method name="op" specifiers="static"><type>bool</type><template>
  589. <template-type-parameter name="T"/>
  590. <template-type-parameter name="U"/>
  591. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::true_ const &amp;</paramtype></parameter></method>
  592. </method-group>
  593. </struct><struct name="less"><purpose>Less predicate. </purpose><typedef name="result_type"><type>bool</type></typedef>
  594. <method-group name="public member functions">
  595. <method name="operator()" cv="const"><type>bool</type><template>
  596. <template-type-parameter name="T"/>
  597. <template-type-parameter name="U"/>
  598. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  599. </method-group>
  600. <method-group name="private static functions">
  601. <method name="op" specifiers="static"><type>bool</type><template>
  602. <template-type-parameter name="T"/>
  603. <template-type-parameter name="U"/>
  604. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::false_ const &amp;</paramtype></parameter></method>
  605. <method name="op" specifiers="static"><type>bool</type><template>
  606. <template-type-parameter name="T"/>
  607. <template-type-parameter name="U"/>
  608. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::true_ const &amp;</paramtype></parameter></method>
  609. </method-group>
  610. </struct><struct name="less_equal"><purpose>Less or equal predicate. </purpose><typedef name="result_type"><type>bool</type></typedef>
  611. <method-group name="public member functions">
  612. <method name="operator()" cv="const"><type>bool</type><template>
  613. <template-type-parameter name="T"/>
  614. <template-type-parameter name="U"/>
  615. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  616. </method-group>
  617. <method-group name="private static functions">
  618. <method name="op" specifiers="static"><type>bool</type><template>
  619. <template-type-parameter name="T"/>
  620. <template-type-parameter name="U"/>
  621. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::false_ const &amp;</paramtype></parameter></method>
  622. <method name="op" specifiers="static"><type>bool</type><template>
  623. <template-type-parameter name="T"/>
  624. <template-type-parameter name="U"/>
  625. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::true_ const &amp;</paramtype></parameter></method>
  626. </method-group>
  627. </struct><struct name="not_equal_to"><purpose>Inequality predicate. </purpose><typedef name="result_type"><type>bool</type></typedef>
  628. <method-group name="public member functions">
  629. <method name="operator()" cv="const"><type>bool</type><template>
  630. <template-type-parameter name="T"/>
  631. <template-type-parameter name="U"/>
  632. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></method>
  633. </method-group>
  634. <method-group name="private static functions">
  635. <method name="op" specifiers="static"><type>bool</type><template>
  636. <template-type-parameter name="T"/>
  637. <template-type-parameter name="U"/>
  638. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::false_ const &amp;</paramtype></parameter></method>
  639. <method name="op" specifiers="static"><type>bool</type><template>
  640. <template-type-parameter name="T"/>
  641. <template-type-parameter name="U"/>
  642. </template><parameter name="left"><paramtype>T const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter><parameter name=""><paramtype>mpl::true_ const &amp;</paramtype></parameter></method>
  643. </method-group>
  644. </struct>
  645. </namespace>
  646. </namespace>
  647. </header>
  648. <header name="boost/log/utility/functional/matches.hpp">
  649. <para><para>Andrey Semashev </para>
  650. <para>30.03.2008</para>
  651. This header contains a predicate for checking if the provided string matches a regular expression. </para><namespace name="boost">
  652. <namespace name="log">
  653. <struct name="matches_fun"><purpose>The regex matching functor. </purpose><typedef name="result_type"><type>bool</type></typedef>
  654. <method-group name="public member functions">
  655. <method name="operator()" cv="const"><type>bool</type><template>
  656. <template-type-parameter name="StringT"/>
  657. <template-type-parameter name="ExpressionT"/>
  658. </template><parameter name="str"><paramtype>StringT const &amp;</paramtype></parameter><parameter name="expr"><paramtype>ExpressionT const &amp;</paramtype></parameter></method>
  659. <method name="operator()" cv="const"><type>bool</type><template>
  660. <template-type-parameter name="StringT"/>
  661. <template-type-parameter name="ExpressionT"/>
  662. <template-type-parameter name="ArgT"/>
  663. </template><parameter name="str"><paramtype>StringT const &amp;</paramtype></parameter><parameter name="expr"><paramtype>ExpressionT const &amp;</paramtype></parameter><parameter name="arg"><paramtype>ArgT const &amp;</paramtype></parameter></method>
  664. </method-group>
  665. </struct>
  666. </namespace>
  667. </namespace>
  668. </header>
  669. <header name="boost/log/utility/functional/nop.hpp">
  670. <para><para>Andrey Semashev </para>
  671. <para>30.03.2008</para>
  672. This header contains a function object that does nothing. </para><namespace name="boost">
  673. <namespace name="log">
  674. <struct name="nop"><purpose>The function object that does nothing. </purpose><typedef name="result_type"><type>void</type></typedef>
  675. <method-group name="public member functions">
  676. <method name="operator()" cv="const noexcept"><type>void</type></method>
  677. <method name="operator()" cv="const noexcept"><type>void</type><template>
  678. <template-nontype-parameter name="ArgsT"><type>typename...</type></template-nontype-parameter>
  679. </template><parameter name="..."><paramtype>ArgsT const &amp;</paramtype></parameter></method>
  680. </method-group>
  681. </struct>
  682. </namespace>
  683. </namespace>
  684. </header>
  685. <header name="boost/log/utility/functional/save_result.hpp">
  686. <para><para>Andrey Semashev </para>
  687. <para>19.01.2013</para>
  688. This header contains function object adapter that saves the result of the adopted function to an external variable. </para><namespace name="boost">
  689. <namespace name="log">
  690. <struct name="save_result_wrapper"><template>
  691. <template-type-parameter name="FunT"/>
  692. <template-type-parameter name="AssigneeT"/>
  693. </template><purpose>Function object wrapper for saving the adopted function object result. </purpose><typedef name="result_type"><type>void</type></typedef>
  694. <method-group name="public member functions">
  695. <method name="operator()" cv="const"><type>result_type</type><template>
  696. <template-type-parameter name="ArgT"/>
  697. </template><parameter name="arg"><paramtype>ArgT const &amp;</paramtype></parameter></method>
  698. </method-group>
  699. <constructor><parameter name="fun"><paramtype>FunT</paramtype></parameter><parameter name="assignee"><paramtype>AssigneeT &amp;</paramtype></parameter></constructor>
  700. </struct>
  701. <function name="save_result"><type><classname>save_result_wrapper</classname>&lt; FunT, AssigneeT &gt;</type><template>
  702. <template-type-parameter name="FunT"/>
  703. <template-type-parameter name="AssigneeT"/>
  704. </template><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><parameter name="assignee"><paramtype>AssigneeT &amp;</paramtype></parameter></function>
  705. </namespace>
  706. </namespace>
  707. </header>
  708. <header name="boost/log/utility/ipc/object_name.hpp">
  709. <para><para>Andrey Semashev </para>
  710. <para>05.03.2016</para>
  711. The header contains declaration of a system object name wrapper. </para><namespace name="boost">
  712. <namespace name="log">
  713. <namespace name="ipc">
  714. <class name="object_name"><purpose>A system object name class. </purpose><description><para>In order to identify a system-wide object such as a shared memory segment or a named synchronization primitive the object has to be given a name. The format of the name is specific to the operating system and the <computeroutput><classname alt="boost::log::ipc::object_name">object_name</classname></computeroutput> class provides an abstraction for names of objects. It also provides means for scoping, which allows to avoid name clashes between different processes.</para><para>The object name is a UTF-8 encoded string. The portable object name should consist of the following characters:</para><programlisting>
  715. A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  716. a b c d e f g h i j k l m n o p q r s t u v w x y z
  717. 0 1 2 3 4 5 6 7 8 9 . _ -
  718. </programlisting><para><note><para>The character set corresponds to the POSIX Portable Filename Character Set (<ulink url="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_278">http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_278</ulink>).</para>
  719. </note>
  720. Use of other characters may result in non-portable system-specific behavior.</para><para>The name can have one of the following scopes:</para><para><itemizedlist>
  721. <listitem><para><computeroutput>global</computeroutput> - objects within this scope are visible to any process on the system. In order to use this scope the process may need to have extended privileges. This scope is not available for Windows Store applications. </para>
  722. </listitem>
  723. <listitem><para><computeroutput>user</computeroutput> - objects within this scope can be opened by processes running under the same user as the current process. </para>
  724. </listitem>
  725. <listitem><para><computeroutput>session</computeroutput> - objects within this scope are visible to processes within the session of the current process. The definition of a session may vary between operating systems. On POSIX, a session is typically a group of processes attached to a single virtual terminal device. On Windows a session is started when a user logs into the system. There is also a separate session for Windows services. </para>
  726. </listitem>
  727. <listitem><para><computeroutput>process_group</computeroutput> - objects within this scope are visible to processes within the process group of the current process. Currently, on Windows all processes running in the current session are considered members of the same process group. This may change in future.</para>
  728. </listitem>
  729. </itemizedlist>
  730. The scopes are not overlapping. For instance, if an object is created in the global scope, the object cannot be opened with the same name but in user's scope.</para><para>Note that name scoping is not a security feature. On some systems any process on the system has technical capability to open objects within any scope. The scope is only used to help avoid name clashes between processes using <computeroutput><classname alt="boost::log::ipc::object_name">object_name</classname></computeroutput> to identify objects. </para></description><enum name="scope"><enumvalue name="global"><purpose>The name has global scope; any process in the system has the potential to open the resource identified by the name. </purpose></enumvalue><enumvalue name="user"><purpose>The name is limited to processes running under the current user. </purpose></enumvalue><enumvalue name="session"><purpose>The name is limited to processes running in the current login session. </purpose></enumvalue><enumvalue name="process_group"><purpose>The name is limited to processes running in the current process group. </purpose></enumvalue><purpose>Name scopes. </purpose></enum>
  731. <method-group name="public member functions">
  732. <method name="empty" cv="const noexcept"><type>bool</type><description><para>Returns <computeroutput>true</computeroutput> if the object name is empty </para></description></method>
  733. <method name="size" cv="const noexcept"><type>std::size_t</type><description><para>Returns length of the name, in bytes </para></description></method>
  734. <method name="c_str" cv="const noexcept"><type>const char *</type><description><para>Returns the name string </para></description></method>
  735. <method name="swap" cv="noexcept"><type>void</type><parameter name="that"><paramtype><classname>object_name</classname> &amp;</paramtype></parameter><description><para>Swaps the object name with another object name </para></description></method>
  736. </method-group>
  737. <constructor cv="noexcept"><description><para>Default constructor. The method creates an empty object name.</para><para>
  738. </para></description><postconditions><para><computeroutput>empty() == true</computeroutput> </para>
  739. </postconditions></constructor>
  740. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>object_name</classname> &amp;&amp;</paramtype></parameter><description><para>Move constructor. </para></description></constructor>
  741. <constructor><parameter name="that"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Copy constructor. </para></description></constructor>
  742. <constructor><parameter name="ns"><paramtype>scope</paramtype><description><para>The scope of the object name </para></description></parameter><parameter name="str"><paramtype>const char *</paramtype><description><para>The object name, must not be NULL. </para></description></parameter><description><para>Constructor from the object name
  743. </para></description></constructor>
  744. <constructor><parameter name="ns"><paramtype>scope</paramtype><description><para>The scope of the object name </para></description></parameter><parameter name="str"><paramtype>std::string const &amp;</paramtype><description><para>The object name </para></description></parameter><description><para>Constructor from the object name
  745. </para></description></constructor>
  746. <copy-assignment cv="noexcept"><type><classname>object_name</classname> &amp;</type><parameter name="that"><paramtype><classname>object_name</classname> &amp;&amp;</paramtype></parameter><description><para>Move assignment </para></description></copy-assignment>
  747. <copy-assignment><type><classname>object_name</classname> &amp;</type><parameter name="that"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Copy assignment </para></description></copy-assignment>
  748. <method-group name="public static functions">
  749. <method name="from_native" specifiers="static"><type><classname>object_name</classname></type><parameter name="str"><paramtype>const char *</paramtype><description><para>The object name string, must not be <computeroutput>NULL</computeroutput>. The string format is specific to the operating system. </para></description></parameter><description><para>Constructor from the native string.</para><para>
  750. </para></description></method>
  751. <method name="from_native" specifiers="static"><type><classname>object_name</classname></type><parameter name="str"><paramtype>std::string const &amp;</paramtype><description><para>The object name string. The string format is specific to the operating system. </para></description></parameter><description><para>Constructor from the native string.</para><para>
  752. </para></description></method>
  753. </method-group>
  754. <method-group name="friend functions">
  755. <method name="swap" cv="noexcept"><type>friend void</type><parameter name="left"><paramtype><classname>object_name</classname> &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>object_name</classname> &amp;</paramtype></parameter><description><para>Swaps two object names </para></description></method>
  756. <method name="to_string"><type>friend std::string</type><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Returns string representation of the object name </para></description></method>
  757. <method name="operator==" cv="noexcept"><type>friend bool</type><parameter name="left"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Equality operator </para></description></method>
  758. <method name="operator!=" cv="noexcept"><type>friend bool</type><parameter name="left"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Inequality operator </para></description></method>
  759. <method name="operator&lt;" cv="noexcept"><type>friend bool</type><parameter name="left"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Less operator </para></description></method>
  760. <method name="operator&gt;" cv="noexcept"><type>friend bool</type><parameter name="left"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Greater operator </para></description></method>
  761. <method name="operator&lt;=" cv="noexcept"><type>friend bool</type><parameter name="left"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Less or equal operator </para></description></method>
  762. <method name="operator&gt;=" cv="noexcept"><type>friend bool</type><parameter name="left"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Greater or equal operator </para></description></method>
  763. <method name="operator&lt;&lt;"><type>friend std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</type><template>
  764. <template-type-parameter name="CharT"/>
  765. <template-type-parameter name="TraitsT"/>
  766. </template><parameter name="strm"><paramtype>std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</paramtype></parameter><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype></parameter><description><para>Stream ouput operator </para></description></method>
  767. </method-group>
  768. </class></namespace>
  769. </namespace>
  770. </namespace>
  771. </header>
  772. <header name="boost/log/utility/ipc/reliable_message_queue.hpp">
  773. <para><para>Lingxi Li </para>
  774. <para>Andrey Semashev </para>
  775. <para>01.01.2016</para>
  776. The header contains declaration of a reliable interprocess message queue. </para><namespace name="boost">
  777. <namespace name="log">
  778. <namespace name="ipc">
  779. <class name="reliable_message_queue"><purpose>A reliable interprocess message queue. </purpose><description><para>The queue implements a reliable one-way channel of passing messages from one or multiple writers to a single reader. The format of the messages is user-defined and must be consistent across all writers and the reader. The queue does not enforce any specific format of the messages, other than they should be supplied as a contiguous array of bytes.</para><para>The queue internally uses a process-shared storage identified by an <computeroutput><classname alt="boost::log::ipc::object_name">object_name</classname></computeroutput> (the queue name). Refer to <computeroutput><classname alt="boost::log::ipc::object_name">object_name</classname></computeroutput> documentation for details on restrictions imposed on object names.</para><para>The queue storage is organized as a fixed number of blocks of a fixed size. The block size must be an integer power of 2 and is expressed in bytes. Each written message, together with some metadata added by the queue, consumes an integer number of blocks. Each read message received by the reader releases the blocks allocated for that message. As such the maximum size of a message is slightly less than block size times capacity of the queue. For efficiency, it is recommended to choose block size large enough to accommodate most of the messages to be passed through the queue.</para><para>The queue is considered empty when no messages are enqueued (all blocks are free). The queue is considered full at the point of enqueueing a message when there is not enough free blocks to accommodate the message.</para><para>The queue is reliable in that it will not drop successfully sent messages that are not received by the reader, other than the case when a non-empty queue is destroyed by the last user. If a message cannot be enqueued by the writer because the queue is full, the queue can either block the writer or return an error or throw an exception, depending on the policy specified at the queue creation. The policy is object local, i.e. different writers and the reader can have different overflow policies.</para><para>If the queue is empty and the reader attempts to dequeue a message, it will block until a message is enqueued by a writer.</para><para>A blocked reader or writer can be unblocked by calling <computeroutput>stop_local</computeroutput>. After this method is called, all threads blocked on this particular object are released and return <computeroutput>operation_result::aborted</computeroutput>. The other instances of the queue (in the current or other processes) are unaffected. In order to restore the normal functioning of the queue instance after the <computeroutput>stop_local</computeroutput> call the user has to invoke <computeroutput>reset_local</computeroutput>.</para><para>The queue does not guarantee any particular order of received messages from different writer threads. Messages sent by a particular writer thread will be received in the order of sending.</para><para>Methods of this class are not thread-safe, unless otherwise specified. </para></description><enum name="operation_result"><enumvalue name="succeeded"><purpose>The operation has completed successfully. </purpose></enumvalue><enumvalue name="no_space"><purpose>The message could not be sent because the queue is full. </purpose></enumvalue><enumvalue name="aborted"><purpose>The operation has been aborted because the queue method <computeroutput>stop_local()</computeroutput> has been called. </purpose></enumvalue><purpose>Result codes for various operations on the queue. </purpose></enum>
  780. <enum name="overflow_policy"><enumvalue name="block_on_overflow"><purpose>Block the send operation when the queue is full. </purpose></enumvalue><enumvalue name="fail_on_overflow"><purpose>Return <computeroutput>operation_result::no_space</computeroutput> when the queue is full. </purpose></enumvalue><enumvalue name="throw_on_overflow"><purpose>Throw <computeroutput>capacity_limit_reached</computeroutput> exception when the queue is full. </purpose></enumvalue><purpose>Interprocess queue overflow policies. </purpose></enum>
  781. <typedef name="size_type"><purpose>Queue message size type. </purpose><type>uint32_t</type></typedef>
  782. <method-group name="public member functions">
  783. <method name="swap" cv="noexcept"><type>void</type><parameter name="that"><paramtype><classname>reliable_message_queue</classname> &amp;</paramtype><description><para>The other object to swap with. </para></description></parameter><description><para>The method swaps the object with <emphasis>that</emphasis>.</para><para>
  784. </para></description></method>
  785. <method name="create"><type>void</type><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype><description><para>Name of the message queue to be associated with. </para></description></parameter><parameter name="capacity"><paramtype>uint32_t</paramtype><description><para>Maximum number of allocation blocks the queue can hold. </para></description></parameter><parameter name="block_size"><paramtype>size_type</paramtype><description><para>Size in bytes of allocation block. Must be a power of 2. </para></description></parameter><parameter name="oflow_policy"><paramtype>overflow_policy</paramtype><default>block_on_overflow</default><description><para>Queue behavior policy in case of overflow. </para></description></parameter><parameter name="perms"><paramtype><classname>permissions</classname> const &amp;</paramtype><default><classname alt="boost::log::permissions">permissions</classname>()</default><description><para>Access permissions for the associated message queue. </para></description></parameter><description><para>The method creates the message queue to be associated with the object. After the call, the object will be in running state if a message queue is successfully created.</para><para>
  786. </para></description><requires><para><computeroutput>is_open() == false</computeroutput> </para>
  787. </requires><postconditions><para><computeroutput>is_open() == true</computeroutput></para>
  788. </postconditions></method>
  789. <method name="open_or_create"><type>void</type><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype><description><para>Name of the message queue to be associated with. </para></description></parameter><parameter name="capacity"><paramtype>uint32_t</paramtype><description><para>Maximum number of allocation blocks the queue can hold. </para></description></parameter><parameter name="block_size"><paramtype>size_type</paramtype><description><para>Size in bytes of allocation block. Must be a power of 2. </para></description></parameter><parameter name="oflow_policy"><paramtype>overflow_policy</paramtype><default>block_on_overflow</default><description><para>Queue behavior policy in case of overflow. </para></description></parameter><parameter name="perms"><paramtype><classname>permissions</classname> const &amp;</paramtype><default><classname alt="boost::log::permissions">permissions</classname>()</default><description><para>Access permissions for the associated message queue. </para></description></parameter><description><para>The method creates or opens the message queue to be associated with the object. After the call, the object will be in running state if a message queue is successfully created or opened. If the message queue that is identified by the name already exists then the other queue parameters are ignored. The actual queue parameters can be obtained with accessors from this object after this method returns.</para><para>
  790. </para></description><requires><para><computeroutput>is_open() == false</computeroutput> </para>
  791. </requires><postconditions><para><computeroutput>is_open() == true</computeroutput></para>
  792. </postconditions></method>
  793. <method name="open"><type>void</type><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype><description><para>Name of the message queue to be associated with. </para></description></parameter><parameter name="oflow_policy"><paramtype>overflow_policy</paramtype><default>block_on_overflow</default><description><para>Queue behavior policy in case of overflow. </para></description></parameter><parameter name="perms"><paramtype><classname>permissions</classname> const &amp;</paramtype><default><classname alt="boost::log::permissions">permissions</classname>()</default><description><para>Access permissions for the associated message queue. The permissions will only be used if the queue implementation has to create system objects while operating. This parameter is currently not used on POSIX systems. </para></description></parameter><description><para>The method opens the existing message queue to be associated with the object. After the call, the object will be in running state if a message queue is successfully opened.</para><para>
  794. </para></description><requires><para><computeroutput>is_open() == false</computeroutput> </para>
  795. </requires><postconditions><para><computeroutput>is_open() == true</computeroutput></para>
  796. </postconditions></method>
  797. <method name="is_open" cv="const noexcept"><type>bool</type><description><para>Tests whether the object is associated with any message queue.</para><para>
  798. </para></description><returns><para><computeroutput>true</computeroutput> if the object is associated with a message queue, and <computeroutput>false</computeroutput> otherwise. </para>
  799. </returns></method>
  800. <method name="clear"><type>void</type><description><para>This method empties the associated message queue. Concurrent calls to this method, <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, and <computeroutput>stop_local()</computeroutput> are allowed.</para><para>
  801. </para></description><requires><para><computeroutput>is_open() == true</computeroutput> </para>
  802. </requires></method>
  803. <method name="name" cv="const"><type><classname>object_name</classname> const &amp;</type><description><para>The method returns the name of the associated message queue.</para><para>
  804. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  805. </requires><returns><para>Name of the associated message queue </para>
  806. </returns></method>
  807. <method name="capacity" cv="const"><type>uint32_t</type><description><para>The method returns the maximum number of allocation blocks the associated message queue can hold. Note that the returned value may be different from the corresponding value passed to the constructor or <computeroutput>open_or_create()</computeroutput>, for the message queue may not have been created by this object.</para><para>
  808. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  809. </requires><returns><para>Maximum number of allocation blocks the associated message queue can hold. </para>
  810. </returns></method>
  811. <method name="block_size" cv="const"><type>size_type</type><description><para>The method returns the allocation block size, in bytes. Each message in the associated message queue consumes an integer number of allocation blocks. Note that the returned value may be different from the corresponding value passed to the constructor or <computeroutput>open_or_create()</computeroutput>, for the message queue may not have been created by this object.</para><para>
  812. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  813. </requires><returns><para>Allocation block size, in bytes. </para>
  814. </returns></method>
  815. <method name="stop_local"><type>void</type><description><para>The method wakes up all threads that are blocked in calls to <computeroutput>send()</computeroutput> or <computeroutput>receive()</computeroutput>. Those calls would then return <computeroutput>operation_result::aborted</computeroutput>. Note that, the method does not block until the woken-up threads have actually returned from <computeroutput>send()</computeroutput> or <computeroutput>receive()</computeroutput>. Other means is needed to ensure that calls to <computeroutput>send()</computeroutput> or <computeroutput>receive()</computeroutput> have returned, e.g., joining the threads that might be blocking on the calls.</para><para>The method also puts the object in stopped state. When in stopped state, calls to <computeroutput>send()</computeroutput> or <computeroutput>receive()</computeroutput> will return immediately with return value <computeroutput>operation_result::aborted</computeroutput> when they would otherwise block in running state.</para><para>Concurrent calls to this method, <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  816. </para></description><requires><para><computeroutput>is_open() == true</computeroutput> </para>
  817. </requires></method>
  818. <method name="reset_local"><type>void</type><description><para>The method puts the object in running state where calls to <computeroutput>send()</computeroutput> or <computeroutput>receive()</computeroutput> may block. This method is not thread-safe.</para><para>
  819. </para></description><requires><para><computeroutput>is_open() == true</computeroutput> </para>
  820. </requires></method>
  821. <method name="close" cv="noexcept"><type>void</type><description><para>The method disassociates the associated message queue, if any. No other threads should be using this object before calling this method. The <computeroutput>stop_local()</computeroutput> method can be used to have any threads currently blocked in <computeroutput>send()</computeroutput> or <computeroutput>receive()</computeroutput> return, and prevent further calls to them from blocking. Typically, before calling this method, one would first call <computeroutput>stop_local()</computeroutput> and then join all threads that might be blocking on <computeroutput>send()</computeroutput> or <computeroutput>receive()</computeroutput> to ensure that they have returned from the calls. The associated message queue is destroyed if the object represents the last outstanding reference to it.</para><para>
  822. </para></description><postconditions><para><computeroutput>is_open() == false</computeroutput> </para>
  823. </postconditions></method>
  824. <method name="send"><type>operation_result</type><parameter name="message_data"><paramtype>void const *</paramtype><description><para>The message data to send. Ignored when <computeroutput>message_size</computeroutput> is <computeroutput>0</computeroutput>. </para></description></parameter><parameter name="message_size"><paramtype>size_type</paramtype><description><para>Size of the message data in bytes. If the size is larger than the associated message queue capacity, an <computeroutput>std::logic_error</computeroutput> exception is thrown.</para></description></parameter><description><para>The method sends a message to the associated message queue. When the object is in running state and the queue has no free space for the message, the method either blocks or throws an exception, depending on the overflow policy that was specified on the queue opening/creation. If blocking policy is in effect, the blocking can be interrupted by calling <computeroutput>stop_local()</computeroutput>, in which case the method returns <computeroutput>operation_result::aborted</computeroutput>. When the object is already in the stopped state, the method does not block but returns immediately with return value <computeroutput>operation_result::aborted</computeroutput>.</para><para>It is possible to send an empty message by passing <computeroutput>0</computeroutput> to the parameter <computeroutput>message_size</computeroutput>.</para><para>Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  825. <emphasis role="bold">Throws:</emphasis> <computeroutput>std::logic_error</computeroutput> in case if the message size exceeds the queue capacity, <computeroutput>system_error</computeroutput> in case if a native OS method fails. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  826. </requires></method>
  827. <method name="try_send"><type>bool</type><parameter name="message_data"><paramtype>void const *</paramtype><description><para>The message data to send. Ignored when <computeroutput>message_size</computeroutput> is <computeroutput>0</computeroutput>. </para></description></parameter><parameter name="message_size"><paramtype>size_type</paramtype><description><para>Size of the message data in bytes. If the size is larger than the maximum size allowed by the associated message queue, an <computeroutput>std::logic_error</computeroutput> exception is thrown.</para></description></parameter><description><para>The method performs an attempt to send a message to the associated message queue. The method is non-blocking, and always returns immediately. <computeroutput>boost::system::system_error</computeroutput> is thrown for errors resulting from native operating system calls. Note that it is possible to send an empty message by passing <computeroutput>0</computeroutput> to the parameter <computeroutput>message_size</computeroutput>. Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  828. <emphasis role="bold">Throws:</emphasis> <computeroutput>std::logic_error</computeroutput> in case if the message size exceeds the queue capacity, <computeroutput>system_error</computeroutput> in case if a native OS method fails. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  829. </requires><returns><para><computeroutput>true</computeroutput> if the message is successfully sent, and <computeroutput>false</computeroutput> otherwise (e.g., when the queue is full).</para>
  830. </returns></method>
  831. <method name="receive"><type>operation_result</type><parameter name="buffer"><paramtype>void *</paramtype><description><para>The memory buffer to store the received message in. </para></description></parameter><parameter name="buffer_size"><paramtype>size_type</paramtype><description><para>The size of the buffer, in bytes. </para></description></parameter><parameter name="message_size"><paramtype>size_type &amp;</paramtype><description><para>Receives the size of the received message, in bytes.</para></description></parameter><description><para>The method takes a message from the associated message queue. When the object is in running state and the queue is empty, the method blocks. The blocking is interrupted when <computeroutput>stop_local()</computeroutput> is called, in which case the method returns <computeroutput>operation_result::aborted</computeroutput>. When the object is already in the stopped state and the queue is empty, the method does not block but returns immediately with return value <computeroutput>operation_result::aborted</computeroutput>.</para><para>Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  832. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  833. </requires></method>
  834. <method name="receive"><type>operation_result</type><template>
  835. <template-type-parameter name="ElementT"/>
  836. <template-nontype-parameter name="SizeV"><type>size_type</type></template-nontype-parameter>
  837. </template><parameter name="buffer"><paramtype>ElementT(&amp;)</paramtype><description><para>The memory buffer to store the received message in. </para></description></parameter><parameter name="message_size"><paramtype>size_type &amp;</paramtype><description><para>Receives the size of the received message, in bytes.</para></description></parameter><description><para>The method takes a message from the associated message queue. When the object is in running state and the queue is empty, the method blocks. The blocking is interrupted when <computeroutput>stop_local()</computeroutput> is called, in which case the method returns <computeroutput>operation_result::aborted</computeroutput>. When the object is already in the stopped state and the queue is empty, the method does not block but returns immediately with return value <computeroutput>operation_result::aborted</computeroutput>.</para><para>Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  838. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  839. </requires></method>
  840. <method name="receive"><type>operation_result</type><template>
  841. <template-type-parameter name="ContainerT"/>
  842. </template><parameter name="container"><paramtype>ContainerT &amp;</paramtype><description><para>The container to store the received message in. The container should have value type of <computeroutput>char</computeroutput>, <computeroutput>signed char</computeroutput> or <computeroutput>unsigned char</computeroutput> and support inserting elements at the end.</para></description></parameter><description><para>The method takes a message from the associated message queue. When the object is in running state and the queue is empty, the method blocks. The blocking is interrupted when <computeroutput>stop_local()</computeroutput> is called, in which case the method returns <computeroutput>operation_result::aborted</computeroutput>. When the object is already in the stopped state and the queue is empty, the method does not block but returns immediately with return value <computeroutput>operation_result::aborted</computeroutput>.</para><para>Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  843. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  844. </requires></method>
  845. <method name="try_receive"><type>bool</type><parameter name="buffer"><paramtype>void *</paramtype><description><para>The memory buffer to store the received message in. </para></description></parameter><parameter name="buffer_size"><paramtype>size_type</paramtype><description><para>The size of the buffer, in bytes. </para></description></parameter><parameter name="message_size"><paramtype>size_type &amp;</paramtype><description><para>Receives the size of the received message, in bytes.</para></description></parameter><description><para>The method performs an attempt to take a message from the associated message queue. The method is non-blocking, and always returns immediately.</para><para>Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  846. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  847. </requires><returns><para><computeroutput>true</computeroutput> if a message is successfully received, and <computeroutput>false</computeroutput> otherwise (e.g., when the queue is empty). </para>
  848. </returns></method>
  849. <method name="try_receive"><type>bool</type><template>
  850. <template-type-parameter name="ElementT"/>
  851. <template-nontype-parameter name="SizeV"><type>size_type</type></template-nontype-parameter>
  852. </template><parameter name="buffer"><paramtype>ElementT(&amp;)</paramtype><description><para>The memory buffer to store the received message in. </para></description></parameter><parameter name="message_size"><paramtype>size_type &amp;</paramtype><description><para>Receives the size of the received message, in bytes.</para></description></parameter><description><para>The method performs an attempt to take a message from the associated message queue. The method is non-blocking, and always returns immediately.</para><para>Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  853. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  854. </requires><returns><para><computeroutput>true</computeroutput> if a message is successfully received, and <computeroutput>false</computeroutput> otherwise (e.g., when the queue is empty). </para>
  855. </returns></method>
  856. <method name="try_receive"><type>bool</type><template>
  857. <template-type-parameter name="ContainerT"/>
  858. </template><parameter name="container"><paramtype>ContainerT &amp;</paramtype><description><para>The container to store the received message in. The container should have value type of <computeroutput>char</computeroutput>, <computeroutput>signed char</computeroutput> or <computeroutput>unsigned char</computeroutput> and support inserting elements at the end.</para></description></parameter><description><para>The method performs an attempt to take a message from the associated message queue. The method is non-blocking, and always returns immediately.</para><para>Concurrent calls to <computeroutput>send()</computeroutput>, <computeroutput>try_send()</computeroutput>, <computeroutput>receive()</computeroutput>, <computeroutput>try_receive()</computeroutput>, <computeroutput>stop_local()</computeroutput>, and <computeroutput>clear()</computeroutput> are allowed.</para><para>
  859. </para></description><requires><para><computeroutput>is_open() == true</computeroutput></para>
  860. </requires><returns><para><computeroutput>true</computeroutput> if a message is successfully received, and <computeroutput>false</computeroutput> otherwise (e.g., when the queue is empty). </para>
  861. </returns></method>
  862. </method-group>
  863. <constructor cv="noexcept"><description><para>Default constructor. The method constructs an object that is not associated with any message queue.</para><para>
  864. </para></description><postconditions><para><computeroutput>is_open() == false</computeroutput> </para>
  865. </postconditions></constructor>
  866. <constructor><parameter name=""><paramtype><classname>open_mode::create_only_tag</classname></paramtype></parameter><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype><description><para>Name of the message queue to be associated with. </para></description></parameter><parameter name="capacity"><paramtype>uint32_t</paramtype><description><para>Maximum number of allocation blocks the queue can hold. </para></description></parameter><parameter name="block_size"><paramtype>size_type</paramtype><description><para>Size in bytes of allocation block. Must be a power of 2. </para></description></parameter><parameter name="oflow_policy"><paramtype>overflow_policy</paramtype><default>block_on_overflow</default><description><para>Queue behavior policy in case of overflow. </para></description></parameter><parameter name="perms"><paramtype><classname>permissions</classname> const &amp;</paramtype><default><classname alt="boost::log::permissions">permissions</classname>()</default><description><para>Access permissions for the associated message queue. </para></description></parameter><description><para>Constructor. The method is used to construct an object and create the associated message queue. The constructed object will be in running state if the message queue is successfully created.</para><para>
  867. </para></description><postconditions><para><computeroutput>is_open() == true</computeroutput></para>
  868. </postconditions></constructor>
  869. <constructor><parameter name=""><paramtype><classname>open_mode::open_or_create_tag</classname></paramtype></parameter><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype><description><para>Name of the message queue to be associated with. </para></description></parameter><parameter name="capacity"><paramtype>uint32_t</paramtype><description><para>Maximum number of allocation blocks the queue can hold. </para></description></parameter><parameter name="block_size"><paramtype>size_type</paramtype><description><para>Size in bytes of allocation block. Must be a power of 2. </para></description></parameter><parameter name="oflow_policy"><paramtype>overflow_policy</paramtype><default>block_on_overflow</default><description><para>Queue behavior policy in case of overflow. </para></description></parameter><parameter name="perms"><paramtype><classname>permissions</classname> const &amp;</paramtype><default><classname alt="boost::log::permissions">permissions</classname>()</default><description><para>Access permissions for the associated message queue. </para></description></parameter><description><para>Constructor. The method is used to construct an object and create or open the associated message queue. The constructed object will be in running state if the message queue is successfully created or opened. If the message queue that is identified by the name already exists then the other queue parameters are ignored. The actual queue parameters can be obtained with accessors from the constructed object.</para><para>
  870. </para></description><postconditions><para><computeroutput>is_open() == true</computeroutput></para>
  871. </postconditions></constructor>
  872. <constructor><parameter name=""><paramtype><classname>open_mode::open_only_tag</classname></paramtype></parameter><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype><description><para>Name of the message queue to be associated with. </para></description></parameter><parameter name="oflow_policy"><paramtype>overflow_policy</paramtype><default>block_on_overflow</default><description><para>Queue behavior policy in case of overflow. </para></description></parameter><parameter name="perms"><paramtype><classname>permissions</classname> const &amp;</paramtype><default><classname alt="boost::log::permissions">permissions</classname>()</default><description><para>Access permissions for the associated message queue. The permissions will only be used if the queue implementation has to create system objects while operating. This parameter is currently not used on POSIX systems. </para></description></parameter><description><para>Constructor. The method is used to construct an object and open the existing message queue. The constructed object will be in running state if the message queue is successfully opened.</para><para>
  873. </para></description><postconditions><para><computeroutput>is_open() == true</computeroutput></para>
  874. </postconditions></constructor>
  875. <constructor specifiers="explicit"><template>
  876. <template-nontype-parameter name="Args"><type>typename...</type></template-nontype-parameter>
  877. </template><parameter name="args"><paramtype>Args const &amp;...</paramtype></parameter><description><para>Constructor with named parameters. The method is used to construct an object and create or open the associated message queue. The constructed object will be in running state if the message queue is successfully created.</para><para>The following named parameters are accepted:</para><para><itemizedlist>
  878. <listitem><para>open_mode - One of the open mode tags: <computeroutput>open_mode::create_only</computeroutput>, <computeroutput>open_mode::open_only</computeroutput> or <computeroutput>open_mode::open_or_create</computeroutput>.</para>
  879. </listitem><listitem><para>name - Name of the message queue to be associated with.</para>
  880. </listitem><listitem><para>capacity - Maximum number of allocation blocks the queue can hold. Used only if the queue is created.</para>
  881. </listitem><listitem><para>block_size - Size in bytes of allocation block. Must be a power of 2. Used only if the queue is created.</para>
  882. </listitem><listitem><para>overflow_policy - Queue behavior policy in case of overflow, see <computeroutput>overflow_policy</computeroutput>.</para>
  883. </listitem><listitem><para>permissions - Access permissions for the associated message queue.</para>
  884. </listitem></itemizedlist>
  885. </para><para>
  886. </para></description><postconditions><para><computeroutput>is_open() == true</computeroutput> </para>
  887. </postconditions></constructor>
  888. <destructor><description><para>Destructor. Calls <computeroutput>close()</computeroutput>. </para></description></destructor>
  889. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>reliable_message_queue</classname> &amp;&amp;</paramtype><description><para>The object to be moved. </para></description></parameter><description><para>Move constructor. The method move-constructs an object from <computeroutput>other</computeroutput>. After the call, the constructed object becomes <computeroutput>other</computeroutput>, while <computeroutput>other</computeroutput> is left in default constructed state.</para><para>
  890. </para></description></constructor>
  891. <copy-assignment cv="noexcept"><type><classname>reliable_message_queue</classname> &amp;</type><parameter name="that"><paramtype><classname>reliable_message_queue</classname> &amp;&amp;</paramtype><description><para>The object to be moved.</para></description></parameter><description><para>Move assignment operator. If the object is associated with a message queue, <computeroutput>close()</computeroutput> is first called and the precondition to calling <computeroutput>close()</computeroutput> applies. After the call, the object becomes <emphasis>that</emphasis> while <emphasis>that</emphasis> is left in default constructed state.</para><para>
  892. </para></description><returns><para>A reference to the assigned object. </para>
  893. </returns></copy-assignment>
  894. <method-group name="friend functions">
  895. <method name="swap" cv="noexcept"><type>friend void</type><parameter name="a"><paramtype><classname>reliable_message_queue</classname> &amp;</paramtype></parameter><parameter name="b"><paramtype><classname>reliable_message_queue</classname> &amp;</paramtype></parameter><purpose>Swaps the two <computeroutput><classname alt="boost::log::ipc::reliable_message_queue">reliable_message_queue</classname></computeroutput> objects. </purpose></method>
  896. </method-group>
  897. <method-group name="public static functions">
  898. <method name="remove" specifiers="static"><type>void</type><parameter name="name"><paramtype><classname>object_name</classname> const &amp;</paramtype><description><para>Name of the message queue to be removed. </para></description></parameter><description><para>The method frees system-wide resources, associated with the interprocess queue with the supplied name. The queue referred to by the specified name must not be opened in any process at the point of this call. After this call succeeds a new queue with the specified name can be created.</para><para>This call can be useful to recover from an earlier process misbehavior (e.g. a crash without properly closing the message queue). In this case resources allocated for the interprocess queue may remain allocated after the last process closed the queue, which in turn may prevent creating a new queue with the same name. By calling this method before creating a queue the application can attempt to ensure it starts with a clean slate.</para><para>On some platforms resources associated with the queue are automatically reclaimed by the operating system when the last process using those resources terminates (even if it terminates abnormally). On these platforms this call may be a no-op. However, portable code should still call this method at appropriate places to ensure compatibility with other platforms and future library versions, which may change implementation of the queue.</para><para>
  899. </para></description></method>
  900. </method-group>
  901. </class></namespace>
  902. </namespace>
  903. </namespace>
  904. </header>
  905. <header name="boost/log/utility/manipulators.hpp">
  906. <para><para>Andrey Semashev </para>
  907. <para>06.11.2012</para>
  908. This header includes all manipulators. </para></header>
  909. <header name="boost/log/utility/manipulators/add_value.hpp">
  910. <para><para>Andrey Semashev </para>
  911. <para>26.11.2012</para>
  912. This header contains the <computeroutput>add_value</computeroutput> manipulator. </para><namespace name="boost">
  913. <namespace name="log">
  914. <class name="add_value_manip"><template>
  915. <template-type-parameter name="RefT"/>
  916. </template><purpose>Attribute value manipulator. </purpose><typedef name="reference_type"><purpose>Stored reference type. </purpose><type>RefT</type></typedef>
  917. <typedef name="value_type"><purpose>Attribute value type. </purpose><type>remove_cv&lt; typename remove_reference&lt; reference_type &gt;::type &gt;::type</type></typedef>
  918. <method-group name="public member functions">
  919. <method name="get_name" cv="const"><type>attribute_name</type><purpose>Returns attribute name. </purpose></method>
  920. <method name="get_value" cv="const"><type>get_value_result_type</type><purpose>Returns attribute value. </purpose></method>
  921. </method-group>
  922. <constructor><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="value"><paramtype>reference_type</paramtype></parameter><purpose>Initializing constructor. </purpose></constructor>
  923. </class>
  924. <function name="operator&lt;&lt;"><type>basic_record_ostream&lt; CharT &gt; &amp;</type><template>
  925. <template-type-parameter name="CharT"/>
  926. <template-type-parameter name="RefT"/>
  927. </template><parameter name="strm"><paramtype>basic_record_ostream&lt; CharT &gt; &amp;</paramtype></parameter><parameter name="manip"><paramtype><classname>add_value_manip</classname>&lt; RefT &gt; const &amp;</paramtype></parameter><purpose>The operator attaches an attribute value to the log record. </purpose></function>
  928. <overloaded-function name="add_value"><signature><type><classname>add_value_manip</classname>&lt; T &amp;&amp; &gt;</type><template>
  929. <template-type-parameter name="T"/>
  930. </template><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="value"><paramtype>T &amp;&amp;</paramtype></parameter></signature><signature><type><classname>add_value_manip</classname>&lt; typename DescriptorT::value_type &amp;&amp; &gt;</type><template>
  931. <template-type-parameter name="DescriptorT"/>
  932. <template-nontype-parameter name="ActorT"><type>template&lt; typename &gt; class</type></template-nontype-parameter>
  933. </template><parameter name=""><paramtype>expressions::attribute_keyword&lt; DescriptorT, ActorT &gt; const &amp;</paramtype></parameter><parameter name="value"><paramtype>typename DescriptorT::value_type &amp;&amp;</paramtype></parameter></signature><signature><type><classname>add_value_manip</classname>&lt; typename DescriptorT::value_type &amp; &gt;</type><template>
  934. <template-type-parameter name="DescriptorT"/>
  935. <template-nontype-parameter name="ActorT"><type>template&lt; typename &gt; class</type></template-nontype-parameter>
  936. </template><parameter name=""><paramtype>expressions::attribute_keyword&lt; DescriptorT, ActorT &gt; const &amp;</paramtype></parameter><parameter name="value"><paramtype>typename DescriptorT::value_type &amp;</paramtype></parameter></signature><signature><type><classname>add_value_manip</classname>&lt; typename DescriptorT::value_type const &amp; &gt;</type><template>
  937. <template-type-parameter name="DescriptorT"/>
  938. <template-nontype-parameter name="ActorT"><type>template&lt; typename &gt; class</type></template-nontype-parameter>
  939. </template><parameter name=""><paramtype>expressions::attribute_keyword&lt; DescriptorT, ActorT &gt; const &amp;</paramtype></parameter><parameter name="value"><paramtype>typename DescriptorT::value_type const &amp;</paramtype></parameter></signature><purpose>The function creates a manipulator that attaches an attribute value to a log record. </purpose></overloaded-function>
  940. </namespace>
  941. </namespace>
  942. </header>
  943. <header name="boost/log/utility/manipulators/auto_newline.hpp">
  944. <para><para>Andrey Semashev </para>
  945. <para>23.06.2019</para>
  946. The header contains implementation of a stream manipulator for inserting a newline, unless there is already one inserted. </para><namespace name="boost">
  947. <namespace name="log">
  948. <struct name="auto_newline_manip"><description><para>Stream manipulator for inserting a newline character, unless the last character inserted into the stream is already a newline. </para></description></struct><data-member name="auto_newline"><type>struct <classname>boost::log::auto_newline_manip</classname></type></data-member>
  949. <function name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname>&lt; CharT, TraitsT, AllocatorT &gt; &amp;</type><template>
  950. <template-type-parameter name="CharT"/>
  951. <template-type-parameter name="TraitsT"/>
  952. <template-type-parameter name="AllocatorT"/>
  953. </template><parameter name="strm"><paramtype><classname>basic_formatting_ostream</classname>&lt; CharT, TraitsT, AllocatorT &gt; &amp;</paramtype></parameter><parameter name=""><paramtype><classname>auto_newline_manip</classname></paramtype></parameter><description><para>Stream output operator for the <computeroutput>auto_newline</computeroutput> manipulator </para></description></function>
  954. </namespace>
  955. </namespace>
  956. </header>
  957. <header name="boost/log/utility/manipulators/dump.hpp">
  958. <para><para>Andrey Semashev </para>
  959. <para>03.05.2013</para>
  960. This header contains the <computeroutput>dump</computeroutput> output manipulator. </para><namespace name="boost">
  961. <namespace name="log">
  962. <class name="bounded_dump_manip"><inherit access="public">dump_manip</inherit><purpose>Manipulator for printing binary representation of the data with a size limit. </purpose><method-group name="public member functions">
  963. <method name="get_max_size" cv="const noexcept"><type>std::size_t</type></method>
  964. </method-group>
  965. <constructor cv="noexcept"><parameter name="data"><paramtype>const void *</paramtype></parameter><parameter name="size"><paramtype>std::size_t</paramtype></parameter><parameter name="max_size"><paramtype>std::size_t</paramtype></parameter></constructor>
  966. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>bounded_dump_manip</classname> const &amp;</paramtype></parameter></constructor>
  967. </class><class name="dump_manip"><purpose>Manipulator for printing binary representation of the data. </purpose><method-group name="public member functions">
  968. <method name="get_data" cv="const noexcept"><type>const void *</type></method>
  969. <method name="get_size" cv="const noexcept"><type>std::size_t</type></method>
  970. </method-group>
  971. <constructor cv="noexcept"><parameter name="data"><paramtype>const void *</paramtype></parameter><parameter name="size"><paramtype>std::size_t</paramtype></parameter></constructor>
  972. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>dump_manip</classname> const &amp;</paramtype></parameter></constructor>
  973. </class>
  974. <function name="operator&lt;&lt;"><type>std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</type><template>
  975. <template-type-parameter name="CharT"/>
  976. <template-type-parameter name="TraitsT"/>
  977. </template><parameter name="strm"><paramtype>std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</paramtype></parameter><parameter name="manip"><paramtype><classname>dump_manip</classname> const &amp;</paramtype></parameter><purpose>The operator outputs binary data to a stream. </purpose></function>
  978. <function name="operator&lt;&lt;"><type>std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</type><template>
  979. <template-type-parameter name="CharT"/>
  980. <template-type-parameter name="TraitsT"/>
  981. </template><parameter name="strm"><paramtype>std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</paramtype></parameter><parameter name="manip"><paramtype><classname>bounded_dump_manip</classname> const &amp;</paramtype></parameter><purpose>The operator outputs binary data to a stream. </purpose></function>
  982. <function name="dump"><type><emphasis>unspecified</emphasis></type><template>
  983. <template-type-parameter name="T"/>
  984. </template><parameter name="data"><paramtype>T *</paramtype><description><para>The pointer to the beginning of the region </para></description></parameter><parameter name="size"><paramtype>std::size_t</paramtype><description><para>The size of the region, in bytes </para></description></parameter><purpose>Creates a stream manipulator that will output contents of a memory region in hexadecimal form. </purpose><description><para>
  985. </para></description><returns><para>The manipulator that is to be put to a stream </para>
  986. </returns></function>
  987. <function name="dump_elements"><type><classname>dump_manip</classname></type><template>
  988. <template-type-parameter name="T"/>
  989. </template><parameter name="data"><paramtype>T *</paramtype><description><para>The pointer to the beginning of the array </para></description></parameter><parameter name="count"><paramtype>std::size_t</paramtype><description><para>The size of the region, in number of <computeroutput>T</computeroutput> elements </para></description></parameter><purpose>Creates a stream manipulator that will dump elements of an array in hexadecimal form. </purpose><description><para>
  990. </para></description><returns><para>The manipulator that is to be put to a stream </para>
  991. </returns></function>
  992. <function name="dump"><type><emphasis>unspecified</emphasis></type><template>
  993. <template-type-parameter name="T"/>
  994. </template><parameter name="data"><paramtype>T *</paramtype><description><para>The pointer to the beginning of the region </para></description></parameter><parameter name="size"><paramtype>std::size_t</paramtype><description><para>The size of the region, in bytes </para></description></parameter><parameter name="max_size"><paramtype>std::size_t</paramtype><description><para>The maximum number of bytes of the region to output </para></description></parameter><purpose>Creates a stream manipulator that will output contents of a memory region in hexadecimal form. </purpose><description><para>
  995. </para></description><returns><para>The manipulator that is to be put to a stream </para>
  996. </returns></function>
  997. <function name="dump_elements"><type><classname>bounded_dump_manip</classname></type><template>
  998. <template-type-parameter name="T"/>
  999. </template><parameter name="data"><paramtype>T *</paramtype><description><para>The pointer to the beginning of the array </para></description></parameter><parameter name="count"><paramtype>std::size_t</paramtype><description><para>The size of the region, in number of <computeroutput>T</computeroutput> elements </para></description></parameter><parameter name="max_count"><paramtype>std::size_t</paramtype><description><para>The maximum number of elements to output </para></description></parameter><purpose>Creates a stream manipulator that will dump elements of an array in hexadecimal form. </purpose><description><para>
  1000. </para></description><returns><para>The manipulator that is to be put to a stream </para>
  1001. </returns></function>
  1002. </namespace>
  1003. </namespace>
  1004. </header>
  1005. <header name="boost/log/utility/manipulators/to_log.hpp">
  1006. <para><para>Andrey Semashev </para>
  1007. <para>06.11.2012</para>
  1008. This header contains the <computeroutput>to_log</computeroutput> output manipulator. </para><namespace name="boost">
  1009. <namespace name="log">
  1010. <class name="to_log_manip"><template>
  1011. <template-type-parameter name="T"/>
  1012. <template-type-parameter name="TagT"><default>void</default></template-type-parameter>
  1013. </template><purpose>Generic manipulator for customizing output to log. </purpose><typedef name="value_type"><purpose>Output value type. </purpose><type>T</type></typedef>
  1014. <typedef name="tag_type"><purpose>Value tag type. </purpose><type>TagT</type></typedef>
  1015. <method-group name="public member functions">
  1016. <method name="get" cv="const noexcept"><type>value_type const &amp;</type></method>
  1017. </method-group>
  1018. <constructor specifiers="explicit" cv="noexcept"><parameter name="value"><paramtype>value_type const &amp;</paramtype></parameter></constructor>
  1019. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>to_log_manip</classname> const &amp;</paramtype></parameter></constructor>
  1020. </class>
  1021. <function name="operator&lt;&lt;"><type><emphasis>unspecified</emphasis></type><template>
  1022. <template-type-parameter name="StreamT"/>
  1023. <template-type-parameter name="T"/>
  1024. <template-type-parameter name="TagT"/>
  1025. </template><parameter name="strm"><paramtype>StreamT &amp;</paramtype></parameter><parameter name="manip"><paramtype><classname>to_log_manip</classname>&lt; T, TagT &gt;</paramtype></parameter></function>
  1026. <function name="to_log"><type><classname>to_log_manip</classname>&lt; T &gt;</type><template>
  1027. <template-type-parameter name="T"/>
  1028. </template><parameter name="value"><paramtype>T const &amp;</paramtype></parameter></function>
  1029. <function name="to_log"><type><classname>to_log_manip</classname>&lt; T, TagT &gt;</type><template>
  1030. <template-type-parameter name="TagT"/>
  1031. <template-type-parameter name="T"/>
  1032. </template><parameter name="value"><paramtype>T const &amp;</paramtype></parameter></function>
  1033. </namespace>
  1034. </namespace>
  1035. </header>
  1036. <header name="boost/log/utility/once_block.hpp">
  1037. <para>The header defines classes and macros for once-blocks. </para><para><para>Andrey Semashev </para>
  1038. <para>23.06.2010 </para>
  1039. </para><namespace name="boost">
  1040. <namespace name="log">
  1041. <struct name="once_block_flag"><purpose>A flag to detect if a code block has already been executed. </purpose><description><para>This structure should be used in conjunction with the <computeroutput>BOOST_LOG_ONCE_BLOCK_FLAG</computeroutput> macro. Usage example:</para><para><computeroutput> <classname alt="boost::log::once_block_flag">once_block_flag</classname> flag = BOOST_LOG_ONCE_BLOCK_INIT;</computeroutput></para><para><computeroutput>void foo() { BOOST_LOG_ONCE_BLOCK_FLAG(flag) { puts("Hello, world once!"); } } </computeroutput> </para></description></struct>
  1042. </namespace>
  1043. </namespace>
  1044. <macro name="BOOST_LOG_ONCE_BLOCK_INIT"><description><para>The static initializer for <computeroutput>once_block_flag</computeroutput>. </para></description></macro>
  1045. <macro name="BOOST_LOG_ONCE_BLOCK_FLAG" kind="functionlike"><macro-parameter name="flag_var"/><description><para>Begins a code block to be executed only once, with protection against thread concurrency. User has to provide the flag variable that controls whether the block has already been executed. </para></description></macro>
  1046. <macro name="BOOST_LOG_ONCE_BLOCK" kind="functionlike"><macro-parameter name=""/><description><para>Begins a code block to be executed only once, with protection against thread concurrency. </para></description></macro>
  1047. </header>
  1048. <header name="boost/log/utility/open_mode.hpp">
  1049. <para><para>Andrey Semashev </para>
  1050. <para>01.01.2016</para>
  1051. The header defines resource opening modes. </para><namespace name="boost">
  1052. <namespace name="log">
  1053. <namespace name="open_mode">
  1054. <struct name="create_only_tag"><purpose>Create a new resource; fail if exists already. </purpose></struct><struct name="open_only_tag"><purpose>Opens an existing resource; fail if not exist. </purpose></struct><struct name="open_or_create_tag"><purpose>Creates a new resource or opens an existing one. </purpose></struct><data-member name="create_only"><type>struct <classname>boost::log::open_mode::create_only_tag</classname></type></data-member>
  1055. <data-member name="open_only"><type>struct <classname>boost::log::open_mode::open_only_tag</classname></type></data-member>
  1056. <data-member name="open_or_create"><type>struct <classname>boost::log::open_mode::open_or_create_tag</classname></type></data-member>
  1057. </namespace>
  1058. </namespace>
  1059. </namespace>
  1060. </header>
  1061. <header name="boost/log/utility/permissions.hpp">
  1062. <para><para>Lingxi Li </para>
  1063. <para>Andrey Semashev </para>
  1064. <para>14.10.2015</para>
  1065. The header contains an abstraction wrapper for security permissions. </para><namespace name="boost">
  1066. <namespace name="interprocess">
  1067. </namespace>
  1068. <namespace name="log">
  1069. <class name="permissions"><purpose>Access permissions wrapper. </purpose><description><para>On Windows platforms, it represents a pointer to <computeroutput>SECURITY_ATTRIBUTES</computeroutput>. The user is responsible for allocating and reclaiming resources associated with the pointer, <computeroutput>permissions</computeroutput> instance does not own them.</para><para>On POSIX platforms, it represents a <computeroutput>mode_t</computeroutput> value. </para></description><typedef name="native_type"><purpose>The type of security permissions, specific to the operating system. </purpose><type>implementation_defined</type></typedef>
  1070. <method-group name="public member functions">
  1071. <method name="set_native" cv="noexcept"><type>void</type><parameter name="perms"><paramtype>native_type</paramtype></parameter><description><para>Sets permissions from the OS-specific permissions. </para></description></method>
  1072. <method name="get_native" cv="const noexcept"><type>native_type</type><description><para>Returns the underlying OS-specific permissions. </para></description></method>
  1073. <method name="set_default" cv="noexcept"><type>void</type><description><para>Sets the default permissions, which are equivalent to <computeroutput>NULL</computeroutput> <computeroutput>SECURITY_ATTRIBUTES</computeroutput> on Windows and <computeroutput>0644</computeroutput> on POSIX platforms. </para></description></method>
  1074. <method name="set_unrestricted"><type>void</type><description><para>Sets unrestricted permissions, which are equivalent to <computeroutput>SECURITY_ATTRIBUTES</computeroutput> with <computeroutput>NULL</computeroutput> DACL on Windows and <computeroutput>0666</computeroutput> on POSIX platforms. </para></description></method>
  1075. <method name="swap" cv="noexcept"><type>void</type><parameter name="that"><paramtype><classname>permissions</classname> &amp;</paramtype><description><para>The other object to swap with. </para></description></parameter><description><para>The method swaps the object with <emphasis>that</emphasis>.</para><para>
  1076. </para></description></method>
  1077. </method-group>
  1078. <constructor cv="noexcept"><description><para>Default constructor. The method constructs an object that represents a null <computeroutput>SECURITY_ATTRIBUTES</computeroutput> pointer on Windows platforms, and a <computeroutput>mode_t</computeroutput> value <computeroutput>0644</computeroutput> on POSIX platforms. </para></description></constructor>
  1079. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>permissions</classname> const &amp;</paramtype></parameter><description><para>Copy constructor. </para></description></constructor>
  1080. <copy-assignment cv="noexcept"><type><classname>permissions</classname> &amp;</type><parameter name="that"><paramtype><classname>permissions</classname> const &amp;</paramtype></parameter><description><para>Copy assignment. </para></description></copy-assignment>
  1081. <constructor cv="noexcept"><parameter name="perms"><paramtype>native_type</paramtype></parameter><description><para>Initializing constructor. </para></description></constructor>
  1082. <constructor cv="noexcept"><parameter name="perms"><paramtype>boost::interprocess::permissions const &amp;</paramtype></parameter><description><para>Initializing constructor. </para></description></constructor>
  1083. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>permissions</classname> &amp;&amp;</paramtype></parameter><description><para>Move constructor. </para></description></constructor>
  1084. <copy-assignment cv="noexcept"><type><classname>permissions</classname> &amp;</type><parameter name="that"><paramtype><classname>permissions</classname> &amp;&amp;</paramtype></parameter><description><para>Move assignment. </para></description></copy-assignment>
  1085. <method-group name="friend functions">
  1086. <method name="swap" cv="noexcept"><type>friend void</type><parameter name="a"><paramtype><classname>permissions</classname> &amp;</paramtype></parameter><parameter name="b"><paramtype><classname>permissions</classname> &amp;</paramtype></parameter><purpose>Swaps the two <computeroutput>permissions</computeroutput> objects. </purpose></method>
  1087. </method-group>
  1088. </class>
  1089. </namespace>
  1090. </namespace>
  1091. </header>
  1092. <header name="boost/log/utility/record_ordering.hpp">
  1093. <para><para>Andrey Semashev </para>
  1094. <para>23.08.2009</para>
  1095. This header contains ordering predicates for logging records. </para><namespace name="boost">
  1096. <namespace name="log">
  1097. <class name="abstract_ordering"><template>
  1098. <template-type-parameter name="FunT"><default><classname alt="boost::log::less">less</classname></default></template-type-parameter>
  1099. </template><inherit access="private">FunT</inherit><purpose>Ordering predicate, based on opaque pointers to the record view implementation data. </purpose><description><para>Since record views only refer to a shared implementation data, this predicate is able to order the views by comparing the pointers to the data. Therefore two views are considered to be equivalent if they refer to the same implementation data. Otherwise it is not specified whether one record is ordered before the other until the predicate is applied. Note that the ordering may change every time the application runs.</para><para>This kind of ordering may be useful if log records are to be stored in an associative container with as least performance overhead as possible, when the particular order is not important.</para><para>The <computeroutput>FunT</computeroutput> template argument is the predicate that is used to actually compare pointers. It should be able to compare <computeroutput>const void*</computeroutput> pointers. The compared pointers may refer to distinct memory regions, the pointers must not be interpreted in any way. </para></description><typedef name="result_type"><purpose>Result type. </purpose><type>bool</type></typedef>
  1100. <method-group name="public member functions">
  1101. <method name="operator()" cv="const"><type>result_type</type><parameter name="left"><paramtype>record_view const &amp;</paramtype></parameter><parameter name="right"><paramtype>record_view const &amp;</paramtype></parameter><description><para>Ordering operator </para></description></method>
  1102. </method-group>
  1103. <constructor><description><para>Default constructor. Requires <computeroutput>FunT</computeroutput> to be default constructible. </para></description></constructor>
  1104. <constructor specifiers="explicit"><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><description><para>Initializing constructor. Constructs <computeroutput>FunT</computeroutput> instance as a copy of the <emphasis>fun</emphasis> argument. </para></description></constructor>
  1105. </class><class name="attribute_value_ordering"><template>
  1106. <template-type-parameter name="ValueT"/>
  1107. <template-type-parameter name="FunT"><default><classname alt="boost::log::less">less</classname></default></template-type-parameter>
  1108. </template><inherit access="private">FunT</inherit><purpose>Ordering predicate, based on attribute values associated with records. </purpose><description><para>This predicate allows to order log records based on values of a specifically named attribute associated with them. Two given log records being compared should both have the specified attribute value of the specified type to be able to be ordered properly. As a special case, if neither of the records have the value, these records are considered equivalent. Otherwise, the ordering results are unspecified. </para></description><struct name="l1_visitor"><typedef name="result_type"><type>void</type></typedef>
  1109. <method-group name="public member functions">
  1110. <method name="operator()" cv="const"><type>result_type</type><template>
  1111. <template-type-parameter name="LeftT"/>
  1112. </template><parameter name="left"><paramtype>LeftT const &amp;</paramtype></parameter></method>
  1113. </method-group>
  1114. <constructor><parameter name="owner"><paramtype><classname>attribute_value_ordering</classname> const &amp;</paramtype></parameter><parameter name="right"><paramtype>record_view const &amp;</paramtype></parameter><parameter name="result"><paramtype>bool &amp;</paramtype></parameter></constructor>
  1115. </struct><struct name="l2_visitor"><template>
  1116. <template-type-parameter name="LeftT"/>
  1117. </template><typedef name="result_type"><type>void</type></typedef>
  1118. <method-group name="public member functions">
  1119. <method name="operator()" cv="const"><type>result_type</type><template>
  1120. <template-type-parameter name="RightT"/>
  1121. </template><parameter name="right"><paramtype>RightT const &amp;</paramtype></parameter></method>
  1122. </method-group>
  1123. <constructor><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><parameter name="left"><paramtype>LeftT const &amp;</paramtype></parameter><parameter name="result"><paramtype>bool &amp;</paramtype></parameter></constructor>
  1124. </struct><typedef name="result_type"><purpose>Result type. </purpose><type>bool</type></typedef>
  1125. <typedef name="value_type"><purpose>Compared attribute value type. </purpose><type>ValueT</type></typedef>
  1126. <method-group name="public member functions">
  1127. <method name="operator()" cv="const"><type>result_type</type><parameter name="left"><paramtype>record_view const &amp;</paramtype></parameter><parameter name="right"><paramtype>record_view const &amp;</paramtype></parameter><description><para>Ordering operator </para></description></method>
  1128. </method-group>
  1129. <constructor specifiers="explicit"><parameter name="name"><paramtype>attribute_name const &amp;</paramtype><description><para>The attribute value name to be compared </para></description></parameter><parameter name="fun"><paramtype>FunT const &amp;</paramtype><default>FunT()</default><description><para>The ordering functor </para></description></parameter><description><para>Initializing constructor.</para><para>
  1130. </para></description></constructor>
  1131. </class>
  1132. <function name="make_attr_ordering"><type><classname>attribute_value_ordering</classname>&lt; ValueT, FunT &gt;</type><template>
  1133. <template-type-parameter name="ValueT"/>
  1134. <template-type-parameter name="FunT"/>
  1135. </template><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><description><para>The function constructs a log record ordering predicate </para></description></function>
  1136. <function name="make_attr_ordering"><type><emphasis>unspecified</emphasis></type><template>
  1137. <template-type-parameter name="FunT"/>
  1138. </template><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="fun"><paramtype>FunT const &amp;</paramtype></parameter><description><para>The function constructs a log record ordering predicate </para></description></function>
  1139. </namespace>
  1140. </namespace>
  1141. </header>
  1142. <header name="boost/log/utility/setup.hpp">
  1143. <para><para>Andrey Semashev </para>
  1144. <para>16.02.2013</para>
  1145. This header includes all library setup helpers. </para></header>
  1146. <header name="boost/log/utility/setup/common_attributes.hpp">
  1147. <para><para>Andrey Semashev </para>
  1148. <para>16.05.2008</para>
  1149. The header contains implementation of convenience functions for registering commonly used attributes. </para><namespace name="boost">
  1150. <namespace name="log">
  1151. <function name="add_common_attributes"><type>void</type><purpose>Simple attribute initialization routine. </purpose><description><para>The function adds commonly used attributes to the logging system. Specifically, the following attributes are registered globally:</para><para><itemizedlist>
  1152. <listitem><para>LineID - logging records counter with value type <computeroutput>unsigned int</computeroutput> </para>
  1153. </listitem>
  1154. <listitem><para>TimeStamp - local time generator with value type <computeroutput>boost::posix_time::ptime</computeroutput> </para>
  1155. </listitem>
  1156. <listitem><para>ProcessID - current process identifier with value type <computeroutput>attributes::current_process_id::value_type</computeroutput> </para>
  1157. </listitem>
  1158. <listitem><para>ThreadID - in multithreaded builds, current thread identifier with value type <computeroutput>attributes::current_thread_id::value_type</computeroutput> </para>
  1159. </listitem>
  1160. </itemizedlist>
  1161. </para></description></function>
  1162. </namespace>
  1163. </namespace>
  1164. </header>
  1165. <header name="boost/log/utility/setup/console.hpp">
  1166. <para><para>Andrey Semashev </para>
  1167. <para>16.05.2008</para>
  1168. The header contains implementation of convenience functions for enabling logging to console. </para><namespace name="boost">
  1169. <namespace name="log">
  1170. <function name="add_console_log"><type>shared_ptr&lt; sinks::synchronous_sink&lt; sinks::basic_text_ostream_backend&lt; CharT &gt; &gt;&gt;</type><template>
  1171. <template-type-parameter name="CharT"/>
  1172. <template-nontype-parameter name="ArgsT"><type>typename...</type></template-nontype-parameter>
  1173. </template><parameter name="strm"><paramtype>std::basic_ostream&lt; CharT &gt; &amp;</paramtype><description><para>One of the standard console streams: <computeroutput>std::cout</computeroutput>, <computeroutput>std::cerr</computeroutput> or <computeroutput>std::clog</computeroutput> (or the corresponding wide-character analogues). </para></description></parameter><parameter name="args"><paramtype>ArgsT... const &amp;</paramtype><description><para>Optional additional named arguments for the sink initialization. The following arguments are supported: <itemizedlist>
  1174. <listitem><para><computeroutput>filter</computeroutput> Specifies a filter to install into the sink. May be a string that represents a filter, or a filter lambda expression. </para>
  1175. </listitem>
  1176. <listitem><para><computeroutput>format</computeroutput> Specifies a formatter to install into the sink. May be a string that represents a formatter, or a formatter lambda expression (either streaming or Boost.Format-like notation). </para>
  1177. </listitem>
  1178. <listitem><para><computeroutput>auto_flush</computeroutput> A boolean flag that shows whether the sink should automatically flush the stream after each written record. </para>
  1179. </listitem>
  1180. <listitem><para><computeroutput>auto_newline_mode</computeroutput> - Specifies automatic trailing newline insertion mode. Must be a value of the <computeroutput>auto_newline_mode</computeroutput> enum. By default, is <computeroutput>auto_newline_mode::insert_if_missing</computeroutput>. </para>
  1181. </listitem>
  1182. </itemizedlist>
  1183. </para></description></parameter><description><para>The function constructs sink for the specified console stream and adds it to the core</para><para>
  1184. </para></description><returns><para>Pointer to the constructed sink. </para>
  1185. </returns></function>
  1186. <function name="add_console_log"><type>shared_ptr&lt; sinks::synchronous_sink&lt; sinks::basic_text_ostream_backend&lt; CharT &gt; &gt;&gt;</type><template>
  1187. <template-type-parameter name="CharT"/>
  1188. <template-nontype-parameter name="ArgsT"><type>typename...</type></template-nontype-parameter>
  1189. </template><parameter name="args"><paramtype>ArgsT... const &amp;</paramtype></parameter><description><para>Equivalent to: <computeroutput>add_console_log(std::clog);</computeroutput> or <computeroutput>add_console_log(std::wclog);</computeroutput>, depending on the <computeroutput>CharT</computeroutput> type.</para><para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </para></description></function>
  1190. <function name="add_console_log"><type>shared_ptr&lt; sinks::synchronous_sink&lt; sinks::text_ostream_backend &gt;&gt;</type><description><para>The function constructs sink for the <computeroutput>std::clog</computeroutput> stream and adds it to the core</para><para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</para><para>
  1191. </para></description><returns><para>Pointer to the constructed sink. </para>
  1192. </returns></function>
  1193. <function name="wadd_console_log"><type>shared_ptr&lt; sinks::synchronous_sink&lt; sinks::wtext_ostream_backend &gt;&gt;</type><description><para>The function constructs sink for the <computeroutput>std::wclog</computeroutput> stream and adds it to the core</para><para>
  1194. </para></description><returns><para>Pointer to the constructed sink. </para>
  1195. </returns></function>
  1196. </namespace>
  1197. </namespace>
  1198. </header>
  1199. <header name="boost/log/utility/setup/file.hpp">
  1200. <para><para>Andrey Semashev </para>
  1201. <para>16.05.2008</para>
  1202. The header contains implementation of convenience functions for enabling logging to a file. </para><namespace name="boost">
  1203. <namespace name="log">
  1204. <function name="add_file_log"><type>shared_ptr&lt; sinks::synchronous_sink&lt; sinks::text_file_backend &gt; &gt;</type><template>
  1205. <template-nontype-parameter name="ArgsT"><type>typename...</type></template-nontype-parameter>
  1206. </template><parameter name="args"><paramtype>ArgsT... const &amp;</paramtype><description><para>A number of named arguments. The following parameters are supported: <itemizedlist>
  1207. <listitem><para><computeroutput>file_name</computeroutput> The active file name or its pattern. This parameter is mandatory. </para>
  1208. </listitem>
  1209. <listitem><para><computeroutput>target_file_name</computeroutput> - Specifies the target file name pattern to use to rename the log file on rotation, before passing it to the file collector. The pattern may contain the same placeholders as the <computeroutput>file_name</computeroutput> parameter. By default, no renaming is done, i.e. the written log file keeps its name according to <computeroutput>file_name</computeroutput>. </para>
  1210. </listitem>
  1211. <listitem><para><computeroutput>open_mode</computeroutput> The mask that describes the open mode for the file. See <computeroutput>std::ios_base::openmode</computeroutput>. </para>
  1212. </listitem>
  1213. <listitem><para><computeroutput>rotation_size</computeroutput> The size of the file at which rotation should occur. See <computeroutput>basic_text_file_backend</computeroutput>. </para>
  1214. </listitem>
  1215. <listitem><para><computeroutput>time_based_rotation</computeroutput> The predicate for time-based file rotations. See <computeroutput>basic_text_file_backend</computeroutput>. </para>
  1216. </listitem>
  1217. <listitem><para><computeroutput>auto_flush</computeroutput> A boolean flag that shows whether the sink should automatically flush the file after each written record. </para>
  1218. </listitem>
  1219. <listitem><para><computeroutput>auto_newline_mode</computeroutput> - Specifies automatic trailing newline insertion mode. Must be a value of the <computeroutput>auto_newline_mode</computeroutput> enum. By default, is <computeroutput>auto_newline_mode::insert_if_missing</computeroutput>. </para>
  1220. </listitem>
  1221. <listitem><para><computeroutput>target</computeroutput> The target directory to store rotated files in. See <computeroutput>sinks::file::make_collector</computeroutput>. </para>
  1222. </listitem>
  1223. <listitem><para><computeroutput>max_size</computeroutput> The maximum total size of rotated files in the target directory. See <computeroutput>sinks::file::make_collector</computeroutput>. </para>
  1224. </listitem>
  1225. <listitem><para><computeroutput>min_free_space</computeroutput> Minimum free space in the target directory. See <computeroutput>sinks::file::make_collector</computeroutput>. </para>
  1226. </listitem>
  1227. <listitem><para><computeroutput>max_files</computeroutput> The maximum total number of rotated files in the target directory. See <computeroutput>sinks::file::make_collector</computeroutput>. </para>
  1228. </listitem>
  1229. <listitem><para><computeroutput>scan_method</computeroutput> The method of scanning the target directory for log files. See <computeroutput>sinks::file::scan_method</computeroutput>. </para>
  1230. </listitem>
  1231. <listitem><para><computeroutput>filter</computeroutput> Specifies a filter to install into the sink. May be a string that represents a filter, or a filter lambda expression. </para>
  1232. </listitem>
  1233. <listitem><para><computeroutput>format</computeroutput> Specifies a formatter to install into the sink. May be a string that represents a formatter, or a formatter lambda expression (either streaming or Boost.Format-like notation). </para>
  1234. </listitem>
  1235. </itemizedlist>
  1236. </para></description></parameter><description><para>The function initializes the logging library to write logs to a file stream.</para><para>
  1237. </para></description><returns><para>Pointer to the constructed sink. </para>
  1238. </returns></function>
  1239. </namespace>
  1240. </namespace>
  1241. </header>
  1242. <header name="boost/log/utility/setup/filter_parser.hpp">
  1243. <para><para>Andrey Semashev </para>
  1244. <para>31.03.2008</para>
  1245. The header contains definition of a filter parser function. </para><namespace name="boost">
  1246. <namespace name="log">
  1247. <class name="basic_filter_factory"><template>
  1248. <template-type-parameter name="CharT"/>
  1249. <template-type-parameter name="AttributeValueT"/>
  1250. </template><inherit access="public">boost::log::filter_factory&lt; CharT &gt;</inherit><description><para>The base class for filter factories. The class defines default implementations for most filter expressions. In order to be able to construct filters, the attribute value type must support reading from a stream. Also, the default filters will rely on relational operators for the type, so these operators must also be defined. </para></description><typedef name="value_type"><purpose>The type(s) of the attribute value expected. </purpose><type>AttributeValueT</type></typedef>
  1251. <typedef name="string_type"><type>base_type::string_type</type></typedef>
  1252. <method-group name="public member functions">
  1253. <method name="on_exists_test" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><description><para>The callback for filter for the attribute existence test </para></description></method>
  1254. <method name="on_equality_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for equality relation filter </para></description></method>
  1255. <method name="on_inequality_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for inequality relation filter </para></description></method>
  1256. <method name="on_less_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for less relation filter </para></description></method>
  1257. <method name="on_greater_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for greater relation filter </para></description></method>
  1258. <method name="on_less_or_equal_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for less or equal relation filter </para></description></method>
  1259. <method name="on_greater_or_equal_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for greater or equal relation filter </para></description></method>
  1260. <method name="on_custom_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="rel"><paramtype>string_type const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for custom relation filter </para></description></method>
  1261. <method name="parse_argument" specifiers="virtual"><type>value_type</type><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The function parses the argument value for a binary relation </para></description></method>
  1262. </method-group>
  1263. </class><struct name="filter_factory"><template>
  1264. <template-type-parameter name="CharT"/>
  1265. </template><description><para>The interface class for all filter factories. </para></description><typedef name="char_type"><purpose>Character type. </purpose><type>CharT</type></typedef>
  1266. <typedef name="string_type"><purpose>String type. </purpose><type>std::basic_string&lt; char_type &gt;</type></typedef>
  1267. <method-group name="public member functions">
  1268. <method name="on_exists_test" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><description><para>The callback for filter for the attribute existence test </para></description></method>
  1269. <method name="on_equality_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for equality relation filter </para></description></method>
  1270. <method name="on_inequality_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for inequality relation filter </para></description></method>
  1271. <method name="on_less_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for less relation filter </para></description></method>
  1272. <method name="on_greater_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for greater relation filter </para></description></method>
  1273. <method name="on_less_or_equal_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for less or equal relation filter </para></description></method>
  1274. <method name="on_greater_or_equal_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for greater or equal relation filter </para></description></method>
  1275. <method name="on_custom_relation" specifiers="virtual"><type>filter</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype></parameter><parameter name="rel"><paramtype>string_type const &amp;</paramtype></parameter><parameter name="arg"><paramtype>string_type const &amp;</paramtype></parameter><description><para>The callback for custom relation filter </para></description></method>
  1276. </method-group>
  1277. <destructor><description><para>Default constructor</para><para>Virtual destructor </para></description></destructor>
  1278. <constructor cv="= delete"><parameter name=""><paramtype><classname>filter_factory</classname> const &amp;</paramtype></parameter></constructor>
  1279. <copy-assignment cv="= delete"><type><classname>filter_factory</classname> &amp;</type><parameter name=""><paramtype><classname>filter_factory</classname> const &amp;</paramtype></parameter></copy-assignment>
  1280. </struct>
  1281. <function name="register_filter_factory"><type>void</type><template>
  1282. <template-type-parameter name="CharT"/>
  1283. </template><parameter name="name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name to associate the factory with </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; <classname>filter_factory</classname>&lt; CharT &gt; &gt; const &amp;</paramtype><description><para>The filter factory </para></description></parameter><description><para>The function registers a filter factory object for the specified attribute name. The factory will be used to construct a filter during parsing the filter string.</para><para>
  1284. </para></description><requires><para><computeroutput>name != NULL &amp;&amp; factory != NULL</computeroutput>, <computeroutput>name</computeroutput> points to a zero-terminated string </para>
  1285. </requires></function>
  1286. <function name="register_filter_factory"><type>boost::enable_if_c&lt; is_base_and_derived&lt; <classname>filter_factory</classname>&lt; typename FactoryT::char_type &gt;, FactoryT &gt;::value &gt;::type</type><template>
  1287. <template-type-parameter name="FactoryT"/>
  1288. </template><parameter name="name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name to associate the factory with </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; FactoryT &gt; const &amp;</paramtype><description><para>The filter factory </para></description></parameter><description><para>The function registers a filter factory object for the specified attribute name. The factory will be used to construct a filter during parsing the filter string.</para><para>
  1289. </para></description><requires><para><computeroutput>name != NULL &amp;&amp; factory != NULL</computeroutput>, <computeroutput>name</computeroutput> points to a zero-terminated string </para>
  1290. </requires></function>
  1291. <function name="register_simple_filter_factory"><type>void</type><template>
  1292. <template-type-parameter name="AttributeValueT"/>
  1293. <template-type-parameter name="CharT"/>
  1294. </template><parameter name="name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name to associate the factory with </para></description></parameter><description><para>The function registers a simple filter factory object for the specified attribute name. The factory will support attribute values of type <computeroutput>AttributeValueT</computeroutput>, which must support all relation operations, such as equality comparison and less/greater ordering, and also extraction from stream.</para><para>
  1295. </para></description><requires><para><computeroutput>name != NULL</computeroutput>, <computeroutput>name</computeroutput> points to a zero-terminated string </para>
  1296. </requires></function>
  1297. <function name="register_simple_filter_factory"><type>void</type><template>
  1298. <template-type-parameter name="AttributeValueT"/>
  1299. </template><parameter name="name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name to associate the factory with </para></description></parameter><description><para>The function registers a simple filter factory object for the specified attribute name. The factory will support attribute values of type <computeroutput>AttributeValueT</computeroutput>, which must support all relation operations, such as equality comparison and less/greater ordering, and also extraction from stream.</para><para>
  1300. </para></description><requires><para><computeroutput>name != NULL</computeroutput>, <computeroutput>name</computeroutput> points to a zero-terminated string </para>
  1301. </requires></function>
  1302. <function name="register_simple_filter_factory"><type>void</type><template>
  1303. <template-type-parameter name="CharT"/>
  1304. <template-type-parameter name="DescriptorT"/>
  1305. <template-nontype-parameter name="ActorT"><type>template&lt; typename &gt; class</type></template-nontype-parameter>
  1306. </template><parameter name="keyword"><paramtype>expressions::attribute_keyword&lt; DescriptorT, ActorT &gt; const &amp;</paramtype><description><para>Attribute keyword to associate the factory with </para></description></parameter><description><para>The function registers a simple filter factory object for the specified attribute keyword. The factory will support attribute values described by the keyword. The values must support all relation operations, such as equality comparison and less/greater ordering, and also extraction from stream.</para><para>
  1307. </para></description><requires><para><computeroutput>name != NULL</computeroutput>, <computeroutput>name</computeroutput> points to a zero-terminated string </para>
  1308. </requires></function>
  1309. <function name="parse_filter"><type>filter</type><template>
  1310. <template-type-parameter name="CharT"/>
  1311. </template><parameter name="begin"><paramtype>const CharT *</paramtype><description><para>Pointer to the first character of the sequence </para></description></parameter><parameter name="end"><paramtype>const CharT *</paramtype><description><para>Pointer to the after-the-last character of the sequence </para></description></parameter><description><para>The function parses a filter from the sequence of characters</para><para>
  1312. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception, if a filter cannot be recognized in the character sequence. </para></description><requires><para><computeroutput>begin &lt;= end</computeroutput>, both pointers must not be <computeroutput>NULL</computeroutput> </para>
  1313. </requires><returns><para>A function object that can be used as a filter.</para>
  1314. </returns></function>
  1315. <function name="parse_filter"><type>filter</type><template>
  1316. <template-type-parameter name="CharT"/>
  1317. <template-type-parameter name="TraitsT"/>
  1318. <template-type-parameter name="AllocatorT"/>
  1319. </template><parameter name="str"><paramtype>std::basic_string&lt; CharT, TraitsT, AllocatorT &gt; const &amp;</paramtype><description><para>A string that contains filter description </para></description></parameter><description><para>The function parses a filter from the string</para><para>
  1320. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception, if a filter cannot be recognized in the character sequence. </para></description><returns><para>A function object that can be used as a filter.</para>
  1321. </returns></function>
  1322. <function name="parse_filter"><type>filter</type><template>
  1323. <template-type-parameter name="CharT"/>
  1324. </template><parameter name="str"><paramtype>const CharT *</paramtype><description><para>A string that contains filter description. </para></description></parameter><description><para>The function parses a filter from the string</para><para>
  1325. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception, if a filter cannot be recognized in the character sequence. </para></description><requires><para><computeroutput>str != NULL</computeroutput>, <computeroutput>str</computeroutput> points to a zero-terminated string. </para>
  1326. </requires><returns><para>A function object that can be used as a filter.</para>
  1327. </returns></function>
  1328. </namespace>
  1329. </namespace>
  1330. </header>
  1331. <header name="boost/log/utility/setup/formatter_parser.hpp">
  1332. <para><para>Andrey Semashev </para>
  1333. <para>07.04.2008</para>
  1334. The header contains definition of a formatter parser function, along with facilities to add support for custom formatters. </para><namespace name="boost">
  1335. <namespace name="log">
  1336. <class name="basic_formatter_factory"><template>
  1337. <template-type-parameter name="CharT"/>
  1338. <template-type-parameter name="AttributeValueT"/>
  1339. </template><inherit access="public">boost::log::formatter_factory&lt; CharT &gt;</inherit><description><para>Base class for formatter factories. This class provides default implementation of formatter expressions for types supporting stream output. The factory does not take into account any additional parameters that may be specified. </para></description><typedef name="value_type"><purpose>Attribute value type. </purpose><type>AttributeValueT</type></typedef>
  1340. <typedef name="formatter_type"><type>base_type::formatter_type</type></typedef>
  1341. <typedef name="args_map"><type>base_type::args_map</type></typedef>
  1342. <method-group name="public member functions">
  1343. <method name="create_formatter" specifiers="virtual"><type>formatter_type</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name </para></description></parameter><parameter name="args"><paramtype>args_map const &amp;</paramtype><description><para>Formatter arguments </para></description></parameter><description><para>The function creates a formatter for the specified attribute.</para><para>
  1344. </para></description></method>
  1345. </method-group>
  1346. </class><struct name="formatter_factory"><template>
  1347. <template-type-parameter name="CharT"/>
  1348. </template><description><para>Formatter factory base interface. </para></description><typedef name="char_type"><purpose>Character type. </purpose><type>CharT</type></typedef>
  1349. <typedef name="string_type"><purpose>String type. </purpose><type>std::basic_string&lt; char_type &gt;</type></typedef>
  1350. <typedef name="formatter_type"><purpose>The formatter function object. </purpose><type>basic_formatter&lt; char_type &gt;</type></typedef>
  1351. <typedef name="args_map"><description><para>Type of the map of formatter factory arguments [argument name -&gt; argument value]. This type of maps will be passed to formatter factories on attempt to create a formatter. </para></description><type>std::map&lt; string_type, string_type &gt;</type></typedef>
  1352. <method-group name="public member functions">
  1353. <method name="create_formatter" cv="= 0" specifiers="virtual"><type>formatter_type</type><parameter name="name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name </para></description></parameter><parameter name="args"><paramtype>args_map const &amp;</paramtype><description><para>Formatter arguments </para></description></parameter><description><para>The function creates a formatter for the specified attribute.</para><para>
  1354. </para></description></method>
  1355. </method-group>
  1356. <destructor><description><para>Default constructor</para><para>Virtual destructor </para></description></destructor>
  1357. <constructor cv="= delete"><parameter name=""><paramtype><classname>formatter_factory</classname> const &amp;</paramtype></parameter></constructor>
  1358. <copy-assignment cv="= delete"><type><classname>formatter_factory</classname> &amp;</type><parameter name=""><paramtype><classname>formatter_factory</classname> const &amp;</paramtype></parameter></copy-assignment>
  1359. </struct>
  1360. <function name="register_formatter_factory"><type>void</type><template>
  1361. <template-type-parameter name="CharT"/>
  1362. </template><parameter name="attr_name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; <classname>formatter_factory</classname>&lt; CharT &gt; &gt; const &amp;</paramtype><description><para>Pointer to the formatter factory </para></description></parameter><purpose>The function registers a user-defined formatter factory. </purpose><description><para>The function registers a user-defined formatter factory. The registered factory function will be called when the formatter parser detects the specified attribute name in the formatter string.</para><para>
  1363. </para></description><requires><para><computeroutput>!!attr_name &amp;&amp; !!factory</computeroutput>.</para>
  1364. </requires></function>
  1365. <function name="register_formatter_factory"><type>boost::enable_if_c&lt; is_base_and_derived&lt; <classname>formatter_factory</classname>&lt; typename FactoryT::char_type &gt;, FactoryT &gt;::value &gt;::type</type><template>
  1366. <template-type-parameter name="FactoryT"/>
  1367. </template><parameter name="attr_name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; FactoryT &gt; const &amp;</paramtype><description><para>Pointer to the formatter factory </para></description></parameter><purpose>The function registers a user-defined formatter factory. </purpose><description><para>The function registers a user-defined formatter factory. The registered factory function will be called when the formatter parser detects the specified attribute name in the formatter string.</para><para>
  1368. </para></description><requires><para><computeroutput>!!attr_name &amp;&amp; !!factory</computeroutput>.</para>
  1369. </requires></function>
  1370. <function name="register_simple_formatter_factory"><type>void</type><template>
  1371. <template-type-parameter name="AttributeValueT"/>
  1372. <template-type-parameter name="CharT"/>
  1373. </template><parameter name="attr_name"><paramtype>attribute_name const &amp;</paramtype><description><para>Attribute name </para></description></parameter><purpose>The function registers a simple formatter factory. </purpose><description><para>The function registers a simple formatter factory. The registered factory will generate formatters that will be equivalent to the <computeroutput>log::expressions::attr</computeroutput> formatter (i.e. that will use the native <computeroutput>operator&lt;&lt;</computeroutput> to format the attribute value). The factory does not use any arguments from the format string, if specified.</para><para>
  1374. </para></description><requires><para><computeroutput>!!attr_name</computeroutput>.</para>
  1375. </requires></function>
  1376. <function name="parse_formatter"><type>basic_formatter&lt; CharT &gt;</type><template>
  1377. <template-type-parameter name="CharT"/>
  1378. </template><parameter name="begin"><paramtype>const CharT *</paramtype><description><para>Pointer to the first character of the sequence </para></description></parameter><parameter name="end"><paramtype>const CharT *</paramtype><description><para>Pointer to the after-the-last character of the sequence </para></description></parameter><description><para>The function parses a formatter from the sequence of characters</para><para>
  1379. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception, if a formatter cannot be recognized in the character sequence. </para></description><requires><para><computeroutput>begin &lt;= end</computeroutput>, both pointers must not be NULL </para>
  1380. </requires><returns><para>The parsed formatter.</para>
  1381. </returns></function>
  1382. <function name="parse_formatter"><type>basic_formatter&lt; CharT &gt;</type><template>
  1383. <template-type-parameter name="CharT"/>
  1384. <template-type-parameter name="TraitsT"/>
  1385. <template-type-parameter name="AllocatorT"/>
  1386. </template><parameter name="str"><paramtype>std::basic_string&lt; CharT, TraitsT, AllocatorT &gt; const &amp;</paramtype><description><para>A string that contains format description </para></description></parameter><description><para>The function parses a formatter from the string</para><para>
  1387. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception, if a formatter cannot be recognized in the character sequence. </para></description><returns><para>The parsed formatter.</para>
  1388. </returns></function>
  1389. <function name="parse_formatter"><type>basic_formatter&lt; CharT &gt;</type><template>
  1390. <template-type-parameter name="CharT"/>
  1391. </template><parameter name="str"><paramtype>const CharT *</paramtype><description><para>A string that contains format description. </para></description></parameter><description><para>The function parses a formatter from the string</para><para>
  1392. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception, if a formatter cannot be recognized in the character sequence. </para></description><requires><para><computeroutput>str != NULL</computeroutput>, <computeroutput>str</computeroutput> points to a zero-terminated string </para>
  1393. </requires><returns><para>The parsed formatter.</para>
  1394. </returns></function>
  1395. </namespace>
  1396. </namespace>
  1397. </header>
  1398. <header name="boost/log/utility/setup/from_settings.hpp">
  1399. <para><para>Andrey Semashev </para>
  1400. <para>11.10.2009</para>
  1401. The header contains definition of facilities that allows to initialize the library from settings. </para><namespace name="boost">
  1402. <namespace name="log">
  1403. <struct name="sink_factory"><template>
  1404. <template-type-parameter name="CharT"/>
  1405. </template><description><para>Sink factory base interface </para></description><typedef name="char_type"><purpose>Character type. </purpose><type>CharT</type></typedef>
  1406. <typedef name="string_type"><purpose>String type. </purpose><type>std::basic_string&lt; char_type &gt;</type></typedef>
  1407. <typedef name="settings_section"><purpose>Settings section type. </purpose><type><classname>basic_settings_section</classname>&lt; char_type &gt;</type></typedef>
  1408. <method-group name="public member functions">
  1409. <method name="create_sink" cv="= 0" specifiers="virtual"><type>shared_ptr&lt; sinks::sink &gt;</type><parameter name="settings"><paramtype>settings_section const &amp;</paramtype><description><para>Sink parameters </para></description></parameter><description><para>The function creates a formatter for the specified attribute.</para><para>
  1410. </para></description></method>
  1411. </method-group>
  1412. <destructor><description><para>Default constructor</para><para>Virtual destructor </para></description></destructor>
  1413. <constructor cv="= delete"><parameter name=""><paramtype><classname>sink_factory</classname> const &amp;</paramtype></parameter></constructor>
  1414. <copy-assignment cv="= delete"><type><classname>sink_factory</classname> &amp;</type><parameter name=""><paramtype><classname>sink_factory</classname> const &amp;</paramtype></parameter></copy-assignment>
  1415. </struct>
  1416. <function name="init_from_settings"><type>void</type><template>
  1417. <template-type-parameter name="CharT"/>
  1418. </template><parameter name="setts"><paramtype><classname>basic_settings_section</classname>&lt; CharT &gt; const &amp;</paramtype><description><para>Library settings container</para></description></parameter><description><para>The function initializes the logging library from a settings container</para><para>
  1419. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if the provided settings are not valid. </para></description></function>
  1420. <function name="register_sink_factory"><type>void</type><template>
  1421. <template-type-parameter name="CharT"/>
  1422. </template><parameter name="sink_name"><paramtype>const char *</paramtype><description><para>The custom sink name. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; <classname>sink_factory</classname>&lt; CharT &gt; &gt; const &amp;</paramtype><description><para>Pointer to the custom sink factory. Must not be NULL. </para></description></parameter><purpose>The function registers a factory for a custom sink. </purpose><description><para>The function registers a factory for a sink. The factory will be called to create sink instance when the parser discovers the specified sink type in the settings file. The factory must accept a map of parameters [parameter name -&gt; parameter value] that it may use to initialize the sink. The factory must return a non-NULL pointer to the constructed sink instance.</para><para>
  1423. </para></description></function>
  1424. <function name="register_sink_factory"><type>void</type><template>
  1425. <template-type-parameter name="CharT"/>
  1426. </template><parameter name="sink_name"><paramtype>std::string const &amp;</paramtype><description><para>The custom sink name </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; <classname>sink_factory</classname>&lt; CharT &gt; &gt; const &amp;</paramtype><description><para>Pointer to the custom sink factory. Must not be NULL. </para></description></parameter><purpose>The function registers a factory for a custom sink. </purpose><description><para>The function registers a factory for a sink. The factory will be called to create sink instance when the parser discovers the specified sink type in the settings file. The factory must accept a map of parameters [parameter name -&gt; parameter value] that it may use to initialize the sink. The factory must return a non-NULL pointer to the constructed sink instance.</para><para>
  1427. </para></description></function>
  1428. <function name="register_sink_factory"><type>boost::enable_if_c&lt; is_base_and_derived&lt; <classname>sink_factory</classname>&lt; typename FactoryT::char_type &gt;, FactoryT &gt;::value &gt;::type</type><template>
  1429. <template-type-parameter name="FactoryT"/>
  1430. </template><parameter name="sink_name"><paramtype>const char *</paramtype><description><para>The custom sink name. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; FactoryT &gt; const &amp;</paramtype><description><para>Pointer to the custom sink factory. Must not be NULL. </para></description></parameter><purpose>The function registers a factory for a custom sink. </purpose><description><para>The function registers a factory for a sink. The factory will be called to create sink instance when the parser discovers the specified sink type in the settings file. The factory must accept a map of parameters [parameter name -&gt; parameter value] that it may use to initialize the sink. The factory must return a non-NULL pointer to the constructed sink instance.</para><para>
  1431. </para></description></function>
  1432. <function name="register_sink_factory"><type>boost::enable_if_c&lt; is_base_and_derived&lt; <classname>sink_factory</classname>&lt; typename FactoryT::char_type &gt;, FactoryT &gt;::value &gt;::type</type><template>
  1433. <template-type-parameter name="FactoryT"/>
  1434. </template><parameter name="sink_name"><paramtype>std::string const &amp;</paramtype><description><para>The custom sink name </para></description></parameter><parameter name="factory"><paramtype>shared_ptr&lt; FactoryT &gt; const &amp;</paramtype><description><para>Pointer to the custom sink factory. Must not be NULL. </para></description></parameter><purpose>The function registers a factory for a custom sink. </purpose><description><para>The function registers a factory for a sink. The factory will be called to create sink instance when the parser discovers the specified sink type in the settings file. The factory must accept a map of parameters [parameter name -&gt; parameter value] that it may use to initialize the sink. The factory must return a non-NULL pointer to the constructed sink instance.</para><para>
  1435. </para></description></function>
  1436. </namespace>
  1437. </namespace>
  1438. </header>
  1439. <header name="boost/log/utility/setup/from_stream.hpp">
  1440. <para><para>Andrey Semashev </para>
  1441. <para>22.03.2008</para>
  1442. The header contains definition of facilities that allows to initialize the library from a settings file. </para><namespace name="boost">
  1443. <namespace name="log">
  1444. <function name="init_from_stream"><type>void</type><template>
  1445. <template-type-parameter name="CharT"/>
  1446. </template><parameter name="strm"><paramtype>std::basic_istream&lt; CharT &gt; &amp;</paramtype><description><para>Stream, that provides library settings</para></description></parameter><description><para>The function initializes the logging library from a stream containing logging settings</para><para>
  1447. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if the read data cannot be interpreted as the library settings </para></description></function>
  1448. </namespace>
  1449. </namespace>
  1450. </header>
  1451. <header name="boost/log/utility/setup/settings.hpp">
  1452. <para><para>Andrey Semashev </para>
  1453. <para>11.10.2009</para>
  1454. The header contains definition of the library settings container. </para><namespace name="boost">
  1455. <namespace name="log">
  1456. <class name="basic_settings"><template>
  1457. <template-type-parameter name="CharT"/>
  1458. </template><inherit access="public">boost::log::basic_settings_section&lt; CharT &gt;</inherit><purpose>The class represents settings container. </purpose><description><para>All settings are presented as a number of named parameters divided into named sections. The parameters values are stored as strings. Individual parameters may be queried via subscript operators, like this:</para><para><computeroutput><programlisting>
  1459. optional&lt; string &gt; param = settings["Section1"]["Param1"]; // reads parameter "Param1" in section "Section1"
  1460. // returns an empty value if no such parameter exists
  1461. settings["Section2"]["Param2"] = 10; // sets the parameter "Param2" in section "Section2"
  1462. // to value "10"
  1463. </programlisting></computeroutput></para><para>There are also other methods to work with parameters. </para></description><typedef name="section"><purpose>Section type. </purpose><type><classname>basic_settings_section</classname>&lt; CharT &gt;</type></typedef>
  1464. <typedef name="property_tree_type"><purpose>Property tree type. </purpose><type>section::property_tree_type</type></typedef>
  1465. <method-group name="public member functions">
  1466. </method-group>
  1467. <constructor><description><para>Default constructor. Creates an empty settings container. </para></description></constructor>
  1468. <constructor><parameter name="that"><paramtype><classname>basic_settings</classname> const &amp;</paramtype></parameter><description><para>Copy constructor. </para></description></constructor>
  1469. <constructor><parameter name="that"><paramtype><classname>this_type</classname> &amp;&amp;</paramtype></parameter><description><para>Move constructor. </para></description></constructor>
  1470. <constructor specifiers="explicit"><parameter name="tree"><paramtype>property_tree_type const &amp;</paramtype></parameter><description><para>Initializing constructor. Creates a settings container with the copy of the specified property tree. </para></description></constructor>
  1471. <destructor><description><para>Destructor </para></description></destructor>
  1472. <copy-assignment><type><classname>basic_settings</classname> &amp;</type><parameter name="that"><paramtype><classname>basic_settings</classname> const &amp;</paramtype></parameter><description><para>Copy assignment operator. </para></description></copy-assignment>
  1473. <copy-assignment><type><classname>basic_settings</classname> &amp;</type><parameter name="that"><paramtype><classname>basic_settings</classname> &amp;&amp;</paramtype></parameter><description><para>Move assignment operator. </para></description></copy-assignment>
  1474. </class><class name="basic_settings_section"><template>
  1475. <template-type-parameter name="CharT"/>
  1476. </template><purpose>The class represents a reference to the settings container section. </purpose><description><para>The section refers to a sub-tree of the library settings container. It does not own the referred sub-tree but allows for convenient access to parameters within the subsection. </para></description><typedef name="char_type"><purpose>Character type. </purpose><type>CharT</type></typedef>
  1477. <typedef name="string_type"><purpose>String type. </purpose><type>std::basic_string&lt; char_type &gt;</type></typedef>
  1478. <typedef name="property_tree_type"><purpose>Property tree type. </purpose><type>property_tree::basic_ptree&lt; std::string, string_type &gt;</type></typedef>
  1479. <typedef name="path_type"><purpose>Property tree path type. </purpose><type>property_tree_type::path_type</type></typedef>
  1480. <typedef name="const_reference"><description><para>Constant reference to the parameter value </para></description><type>implementation_defined</type></typedef>
  1481. <typedef name="reference"><description><para>Mutable reference to the parameter value </para></description><type>implementation_defined</type></typedef>
  1482. <typedef name="const_iterator"><description><para>Constant iterator over nested parameters and subsections </para></description><type>implementation_defined</type></typedef>
  1483. <typedef name="iterator"><description><para>Mutable iterator over nested parameters and subsections </para></description><type>implementation_defined</type></typedef>
  1484. <method-group name="public member functions">
  1485. <method name="conversion-operator" cv="const noexcept" specifiers="explicit"><type>bool</type><description><para>Checks if the section refers to the container. </para></description></method>
  1486. <method name="operator!" cv="const noexcept"><type>bool</type><description><para>Checks if the section refers to the container. </para></description></method>
  1487. <method name="begin"><type>iterator</type><description><para>Returns an iterator over the nested subsections and parameters. </para></description></method>
  1488. <method name="end"><type>iterator</type><description><para>Returns an iterator over the nested subsections and parameters. </para></description></method>
  1489. <method name="begin" cv="const"><type>const_iterator</type><description><para>Returns an iterator over the nested subsections and parameters. </para></description></method>
  1490. <method name="end" cv="const"><type>const_iterator</type><description><para>Returns an iterator over the nested subsections and parameters. </para></description></method>
  1491. <method name="rbegin"><type>reverse_iterator</type><description><para>Returns a reverse iterator over the nested subsections and parameters. </para></description></method>
  1492. <method name="rend"><type>reverse_iterator</type><description><para>Returns a reverse iterator over the nested subsections and parameters. </para></description></method>
  1493. <method name="rbegin" cv="const"><type>const_reverse_iterator</type><description><para>Returns a reverse iterator over the nested subsections and parameters. </para></description></method>
  1494. <method name="rend" cv="const"><type>const_reverse_iterator</type><description><para>Returns a reverse iterator over the nested subsections and parameters. </para></description></method>
  1495. <method name="empty" cv="const"><type>bool</type><description><para>Checks if the container is empty (i.e. contains no sections and parameters). </para></description></method>
  1496. <method name="operator[]"><type>reference</type><parameter name="section_name"><paramtype>std::string const &amp;</paramtype><description><para>The name of the section in which the parameter resides </para></description></parameter><description><para>Accessor to a single parameter. This operator should be used in conjunction with the subsequent subscript operator that designates the parameter name.</para><para>
  1497. </para></description><returns><para>An unspecified reference type that can be used for parameter name specifying </para>
  1498. </returns></method>
  1499. <method name="operator[]" cv="const"><type>const_reference</type><parameter name="section_name"><paramtype>std::string const &amp;</paramtype><description><para>The name of the section in which the parameter resides </para></description></parameter><description><para>Accessor to a single parameter. This operator should be used in conjunction with the subsequent subscript operator that designates the parameter name.</para><para>
  1500. </para></description><returns><para>An unspecified reference type that can be used for parameter name specifying </para>
  1501. </returns></method>
  1502. <method name="operator[]"><type>reference</type><parameter name="section_name"><paramtype>const char *</paramtype><description><para>The name of the section in which the parameter resides </para></description></parameter><description><para>Accessor to a single parameter. This operator should be used in conjunction with the subsequent subscript operator that designates the parameter name.</para><para>
  1503. </para></description><returns><para>An unspecified reference type that can be used for parameter name specifying </para>
  1504. </returns></method>
  1505. <method name="operator[]" cv="const"><type>const_reference</type><parameter name="section_name"><paramtype>const char *</paramtype><description><para>The name of the section in which the parameter resides </para></description></parameter><description><para>Accessor to a single parameter. This operator should be used in conjunction with the subsequent subscript operator that designates the parameter name.</para><para>
  1506. </para></description><returns><para>An unspecified reference type that can be used for parameter name specifying </para>
  1507. </returns></method>
  1508. <method name="property_tree" cv="const"><type>property_tree_type const &amp;</type><description><para>Accessor for the embedded property tree </para></description></method>
  1509. <method name="property_tree"><type>property_tree_type &amp;</type><description><para>Accessor for the embedded property tree </para></description></method>
  1510. <method name="has_section" cv="const"><type>bool</type><parameter name="section_name"><paramtype>string_type const &amp;</paramtype><description><para>The name of the section </para></description></parameter><description><para>Checks if the specified section is present in the container.</para><para>
  1511. </para></description></method>
  1512. <method name="has_parameter" cv="const"><type>bool</type><parameter name="section_name"><paramtype>string_type const &amp;</paramtype><description><para>The name of the section in which the parameter resides </para></description></parameter><parameter name="param_name"><paramtype>string_type const &amp;</paramtype><description><para>The name of the parameter </para></description></parameter><description><para>Checks if the specified parameter is present in the container.</para><para>
  1513. </para></description></method>
  1514. <method name="swap"><type>void</type><parameter name="that"><paramtype><classname>basic_settings_section</classname> &amp;</paramtype></parameter><description><para>Swaps two references to settings sections. </para></description></method>
  1515. </method-group>
  1516. <constructor><description><para>Default constructor. Creates an empty settings container. </para></description></constructor>
  1517. <constructor><parameter name="that"><paramtype><classname>basic_settings_section</classname> const &amp;</paramtype></parameter><description><para>Copy constructor. </para></description></constructor>
  1518. <method-group name="protected member functions">
  1519. </method-group>
  1520. <constructor specifiers="explicit"><parameter name="tree"><paramtype>property_tree_type *</paramtype></parameter></constructor>
  1521. </class><typedef name="settings"><purpose>Convenience typedef for narrow-character logging. </purpose><type><classname>basic_settings</classname>&lt; char &gt;</type></typedef>
  1522. <typedef name="settings_section"><purpose>Convenience typedef for narrow-character logging. </purpose><type><classname>basic_settings_section</classname>&lt; char &gt;</type></typedef>
  1523. <typedef name="wsettings"><purpose>Convenience typedef for wide-character logging. </purpose><type><classname>basic_settings</classname>&lt; wchar_t &gt;</type></typedef>
  1524. <typedef name="wsettings_section"><purpose>Convenience typedef for wide-character logging. </purpose><type><classname>basic_settings_section</classname>&lt; wchar_t &gt;</type></typedef>
  1525. <function name="swap"><type>void</type><template>
  1526. <template-type-parameter name="CharT"/>
  1527. </template><parameter name="left"><paramtype><classname>basic_settings_section</classname>&lt; CharT &gt; &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>basic_settings_section</classname>&lt; CharT &gt; &amp;</paramtype></parameter></function>
  1528. </namespace>
  1529. </namespace>
  1530. </header>
  1531. <header name="boost/log/utility/setup/settings_parser.hpp">
  1532. <para><para>Andrey Semashev </para>
  1533. <para>20.07.2012</para>
  1534. The header contains definition of a settings parser function. </para><namespace name="boost">
  1535. <namespace name="log">
  1536. <function name="parse_settings"><type><classname>basic_settings</classname>&lt; CharT &gt;</type><template>
  1537. <template-type-parameter name="CharT"/>
  1538. </template><parameter name="strm"><paramtype>std::basic_istream&lt; CharT &gt; &amp;</paramtype><description><para>Stream, that provides library settings</para></description></parameter><description><para>The function parses library settings from an input stream</para><para>
  1539. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if the read data cannot be interpreted as the library settings </para></description></function>
  1540. </namespace>
  1541. </namespace>
  1542. </header>
  1543. <header name="boost/log/utility/strictest_lock.hpp">
  1544. <para><para>Andrey Semashev </para>
  1545. <para>30.05.2010</para>
  1546. The header contains definition of the <computeroutput>strictest_lock</computeroutput> metafunction that allows to select a lock with the strictest access requirements. </para><namespace name="boost">
  1547. <namespace name="log">
  1548. <struct name="strictest_lock"><template>
  1549. <template-nontype-parameter name="LocksT"><type>typename...</type></template-nontype-parameter>
  1550. </template><purpose>The metafunction selects the most strict lock type of the specified. </purpose><description><para>The template supports all lock types provided by the Boost.Thread library (except for <computeroutput>upgrade_to_unique_lock</computeroutput>), plus additional pseudo-lock <computeroutput>no_lock</computeroutput> that indicates no locking at all. Exclusive locks are considered the strictest, shared locks are weaker, and <computeroutput>no_lock</computeroutput> is the weakest. </para></description><typedef name="type"><type>implementation_defined</type></typedef>
  1551. </struct><struct name="thread_access_mode_of"><template>
  1552. <template-type-parameter name="LockT"/>
  1553. </template><purpose>The trait allows to select an access mode by the lock type. </purpose></struct><struct-specialization name="thread_access_mode_of"><template>
  1554. <template-type-parameter name="MutexT"/>
  1555. </template><specialization><template-arg>boost::log::aux::exclusive_lock_guard&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, exclusive_access &gt;</inherit></struct-specialization><struct-specialization name="thread_access_mode_of"><template>
  1556. <template-type-parameter name="MutexT"/>
  1557. </template><specialization><template-arg>boost::log::aux::shared_lock_guard&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, shared_access &gt;</inherit></struct-specialization><struct-specialization name="thread_access_mode_of"><template>
  1558. <template-type-parameter name="MutexT"/>
  1559. </template><specialization><template-arg>lock_guard&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, exclusive_access &gt;</inherit></struct-specialization><struct-specialization name="thread_access_mode_of"><template>
  1560. <template-type-parameter name="MutexT"/>
  1561. </template><specialization><template-arg>no_lock&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, unlocked_access &gt;</inherit></struct-specialization><struct-specialization name="thread_access_mode_of"><template>
  1562. <template-type-parameter name="MutexT"/>
  1563. </template><specialization><template-arg>shared_lock&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, shared_access &gt;</inherit></struct-specialization><struct-specialization name="thread_access_mode_of"><template>
  1564. <template-type-parameter name="MutexT"/>
  1565. </template><specialization><template-arg>shared_lock_guard&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, shared_access &gt;</inherit></struct-specialization><struct-specialization name="thread_access_mode_of"><template>
  1566. <template-type-parameter name="MutexT"/>
  1567. </template><specialization><template-arg>unique_lock&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, exclusive_access &gt;</inherit></struct-specialization><struct-specialization name="thread_access_mode_of"><template>
  1568. <template-type-parameter name="MutexT"/>
  1569. </template><specialization><template-arg>upgrade_lock&lt; MutexT &gt;</template-arg></specialization><inherit access="public">mpl::integral_c&lt; lock_access_mode, shared_access &gt;</inherit></struct-specialization><enum name="lock_access_mode"><enumvalue name="unlocked_access"><purpose>A thread that owns this kind of lock doesn't restrict other threads in any way. </purpose></enumvalue><enumvalue name="shared_access"><purpose>A thread that owns this kind of lock requires that no other thread modify the locked data. </purpose></enumvalue><enumvalue name="exclusive_access"><purpose>A thread that owns this kind of lock requires that no other thread has access to the locked data. </purpose></enumvalue><purpose>Access modes for different types of locks. </purpose></enum>
  1570. </namespace>
  1571. </namespace>
  1572. </header>
  1573. <header name="boost/log/utility/string_literal.hpp">
  1574. <para><para>Andrey Semashev </para>
  1575. <para>24.06.2007</para>
  1576. The header contains implementation of a constant string literal wrapper. </para><namespace name="boost">
  1577. <namespace name="log">
  1578. <function name="operator&lt;&lt;"><type>std::basic_ostream&lt; CharT, StrmTraitsT &gt; &amp;</type><template>
  1579. <template-type-parameter name="CharT"/>
  1580. <template-type-parameter name="StrmTraitsT"/>
  1581. <template-type-parameter name="LitTraitsT"/>
  1582. </template><parameter name="strm"><paramtype>std::basic_ostream&lt; CharT, StrmTraitsT &gt; &amp;</paramtype></parameter><parameter name="lit"><paramtype><classname>basic_string_literal</classname>&lt; CharT, LitTraitsT &gt; const &amp;</paramtype></parameter><purpose>Output operator. </purpose></function>
  1583. <function name="swap"><type>constexpr void</type><template>
  1584. <template-type-parameter name="CharT"/>
  1585. <template-type-parameter name="TraitsT"/>
  1586. </template><parameter name="left"><paramtype><classname>basic_string_literal</classname>&lt; CharT, TraitsT &gt; &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>basic_string_literal</classname>&lt; CharT, TraitsT &gt; &amp;</paramtype></parameter><purpose>External swap. </purpose></function>
  1587. <function name="str_literal"><type>constexpr <classname>basic_string_literal</classname>&lt; T &gt;</type><template>
  1588. <template-type-parameter name="T"/>
  1589. <template-nontype-parameter name="LenV"><type>std::size_t</type></template-nontype-parameter>
  1590. </template><parameter name="p"><paramtype>T(&amp;)</paramtype></parameter><purpose>Creates a string literal wrapper from a constant string literal. </purpose></function>
  1591. </namespace>
  1592. </namespace>
  1593. </header>
  1594. <header name="boost/log/utility/string_literal_fwd.hpp">
  1595. <para><para>Andrey Semashev </para>
  1596. <para>24.06.2007</para>
  1597. The header contains forward declaration of a constant string literal wrapper. </para><namespace name="boost">
  1598. <namespace name="log">
  1599. <class name="basic_string_literal"><template>
  1600. <template-type-parameter name="CharT"/>
  1601. <template-type-parameter name="TraitsT"/>
  1602. </template><purpose>String literal wrapper. </purpose><description><para>The <computeroutput><classname alt="boost::log::basic_string_literal">basic_string_literal</classname></computeroutput> is a thin wrapper around a constant string literal. It provides interface similar to STL strings, but because of read-only nature of string literals, lacks ability to modify string contents. However, <computeroutput><classname alt="boost::log::basic_string_literal">basic_string_literal</classname></computeroutput> objects can be assigned to and cleared.</para><para>The main advantage of this class comparing to other string classes is that it doesn't dynamically allocate memory and therefore is fast, thin and exception safe. </para></description><method-group name="public member functions">
  1603. <method name="operator==" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (equality)</para><para>
  1604. </para></description><returns><para><computeroutput>true</computeroutput> if the comparand string equals to this string, <computeroutput>false</computeroutput> otherwise </para>
  1605. </returns></method>
  1606. <method name="operator==" cv="const noexcept"><type>bool</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographical comparison (equality)</para><para>
  1607. </para></description><returns><para><computeroutput>true</computeroutput> if the comparand string equals to this string, <computeroutput>false</computeroutput> otherwise </para>
  1608. </returns></method>
  1609. <method name="operator==" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype>string_type const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (equality)</para><para>
  1610. </para></description><returns><para><computeroutput>true</computeroutput> if the comparand string equals to this string, <computeroutput>false</computeroutput> otherwise </para>
  1611. </returns></method>
  1612. <method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (inequality)</para><para>
  1613. </para></description><returns><para><computeroutput>true</computeroutput> if the comparand string is not equal to this string, <computeroutput>false</computeroutput> otherwise </para>
  1614. </returns></method>
  1615. <method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographical comparison (inequality)</para><para>
  1616. </para></description><returns><para><computeroutput>true</computeroutput> if the comparand string is not equal to this string, <computeroutput>false</computeroutput> otherwise </para>
  1617. </returns></method>
  1618. <method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype>string_type const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (inequality)</para><para>
  1619. </para></description><returns><para><computeroutput>true</computeroutput> if the comparand string is not equal to this string, <computeroutput>false</computeroutput> otherwise </para>
  1620. </returns></method>
  1621. <method name="operator&lt;" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (less ordering)</para><para>
  1622. </para></description><returns><para><computeroutput>true</computeroutput> if this string is less than the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1623. </returns></method>
  1624. <method name="operator&lt;" cv="const noexcept"><type>bool</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographical comparison (less ordering)</para><para>
  1625. </para></description><returns><para><computeroutput>true</computeroutput> if this string is less than the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1626. </returns></method>
  1627. <method name="operator&lt;" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype>string_type const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (less ordering)</para><para>
  1628. </para></description><returns><para><computeroutput>true</computeroutput> if this string is less than the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1629. </returns></method>
  1630. <method name="operator&lt;=" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (less or equal ordering)</para><para>
  1631. </para></description><returns><para><computeroutput>true</computeroutput> if this string is less or equal to the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1632. </returns></method>
  1633. <method name="operator&lt;=" cv="const noexcept"><type>bool</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographical comparison (less or equal ordering)</para><para>
  1634. </para></description><returns><para><computeroutput>true</computeroutput> if this string is less or equal to the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1635. </returns></method>
  1636. <method name="operator&lt;=" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype>string_type const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (less or equal ordering)</para><para>
  1637. </para></description><returns><para><computeroutput>true</computeroutput> if this string is less or equal to the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1638. </returns></method>
  1639. <method name="operator&gt;" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (greater ordering)</para><para>
  1640. </para></description><returns><para><computeroutput>true</computeroutput> if this string is greater than the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1641. </returns></method>
  1642. <method name="operator&gt;" cv="const noexcept"><type>bool</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographical comparison (greater ordering)</para><para>
  1643. </para></description><returns><para><computeroutput>true</computeroutput> if this string is greater than the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1644. </returns></method>
  1645. <method name="operator&gt;" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype>string_type const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (greater ordering)</para><para>
  1646. </para></description><returns><para><computeroutput>true</computeroutput> if this string is greater than the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1647. </returns></method>
  1648. <method name="operator&gt;=" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (greater or equal ordering)</para><para>
  1649. </para></description><returns><para><computeroutput>true</computeroutput> if this string is greater or equal to the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1650. </returns></method>
  1651. <method name="operator&gt;=" cv="const noexcept"><type>bool</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographical comparison (greater or qual ordering)</para><para>
  1652. </para></description><returns><para><computeroutput>true</computeroutput> if this string is greater or equal to the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1653. </returns></method>
  1654. <method name="operator&gt;=" cv="const noexcept"><type>bool</type><parameter name="that"><paramtype>string_type const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographical comparison (greater or equal ordering)</para><para>
  1655. </para></description><returns><para><computeroutput>true</computeroutput> if this string is greater or equal to the comparand, <computeroutput>false</computeroutput> otherwise </para>
  1656. </returns></method>
  1657. <method name="operator[]" cv="const noexcept"><type>constexpr const_reference</type><parameter name="i"><paramtype>size_type</paramtype><description><para>Requested character index </para></description></parameter><description><para>Subscript operator</para><para>
  1658. </para></description><requires><para><computeroutput>i &lt; size()</computeroutput> </para>
  1659. </requires><returns><para>Constant reference to the requested character </para>
  1660. </returns></method>
  1661. <method name="at" cv="const"><type>const_reference</type><parameter name="i"><paramtype>size_type</paramtype><description><para>Requested character index </para></description></parameter><description><para>Checked subscript</para><para>
  1662. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if index <emphasis>i</emphasis> is out of string boundaries </para></description><returns><para>Constant reference to the requested character</para>
  1663. </returns></method>
  1664. <method name="c_str" cv="const noexcept"><type>constexpr const_pointer</type><description><para>
  1665. </para></description><returns><para>Pointer to the beginning of the literal </para>
  1666. </returns></method>
  1667. <method name="data" cv="const noexcept"><type>constexpr const_pointer</type><description><para>
  1668. </para></description><returns><para>Pointer to the beginning of the literal </para>
  1669. </returns></method>
  1670. <method name="size" cv="const noexcept"><type>constexpr size_type</type><description><para>
  1671. </para></description><returns><para>Length of the literal </para>
  1672. </returns></method>
  1673. <method name="length" cv="const noexcept"><type>constexpr size_type</type><description><para>
  1674. </para></description><returns><para>Length of the literal </para>
  1675. </returns></method>
  1676. <method name="empty" cv="const noexcept"><type>constexpr bool</type><description><para>
  1677. </para></description><returns><para><computeroutput>true</computeroutput> if the literal is an empty string, <computeroutput>false</computeroutput> otherwise </para>
  1678. </returns></method>
  1679. <method name="begin" cv="const noexcept"><type>constexpr const_iterator</type><description><para>
  1680. </para></description><returns><para>Iterator that points to the first character of the literal </para>
  1681. </returns></method>
  1682. <method name="end" cv="const noexcept"><type>constexpr const_iterator</type><description><para>
  1683. </para></description><returns><para>Iterator that points after the last character of the literal </para>
  1684. </returns></method>
  1685. <method name="rbegin" cv="const noexcept"><type>const_reverse_iterator</type><description><para>
  1686. </para></description><returns><para>Reverse iterator that points to the last character of the literal </para>
  1687. </returns></method>
  1688. <method name="rend" cv="const noexcept"><type>const_reverse_iterator</type><description><para>
  1689. </para></description><returns><para>Reverse iterator that points before the first character of the literal </para>
  1690. </returns></method>
  1691. <method name="str" cv="const"><type>string_type</type><description><para>
  1692. </para></description><returns><para>STL string constructed from the literal </para>
  1693. </returns></method>
  1694. <method name="clear" cv="noexcept"><type>constexpr void</type><description><para>The method clears the literal</para><para>
  1695. </para></description><postconditions><para><computeroutput>empty() == true</computeroutput> </para>
  1696. </postconditions></method>
  1697. <method name="swap" cv="noexcept"><type>constexpr void</type><parameter name="that"><paramtype><classname>this_type</classname> &amp;</paramtype></parameter><description><para>The method swaps two literals </para></description></method>
  1698. <method name="assign" cv="noexcept"><type>constexpr <classname>this_type</classname> &amp;</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Source literal to copy string from </para></description></parameter><description><para>Assignment from another literal</para><para>
  1699. </para></description><postconditions><para><computeroutput>*this == that</computeroutput> </para>
  1700. </postconditions></method>
  1701. <method name="assign" cv="noexcept"><type>constexpr <classname>this_type</classname> &amp;</type><template>
  1702. <template-type-parameter name="T"/>
  1703. <template-nontype-parameter name="LenV"><type>size_type</type></template-nontype-parameter>
  1704. </template><parameter name="p"><paramtype>T(&amp;)</paramtype><description><para>A zero-terminated constant sequence of characters </para></description></parameter><description><para>Assignment from another literal</para><para>
  1705. </para></description><postconditions><para><computeroutput>*this == p</computeroutput> </para>
  1706. </postconditions></method>
  1707. <method name="copy" cv="const"><type>size_type</type><parameter name="str"><paramtype>value_type *</paramtype><description><para>Pointer to the external buffer beginning. Must not be NULL. The buffer must have enough capacity to accommodate the requested number of characters. </para></description></parameter><parameter name="n"><paramtype>size_type</paramtype><description><para>Maximum number of characters to copy </para></description></parameter><parameter name="pos"><paramtype>size_type</paramtype><default>0</default><description><para>Starting position to start copying from </para></description></parameter><description><para>The method copies the literal or its portion to an external buffer</para><para>
  1708. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if <emphasis>pos</emphasis> is out of range. </para></description><requires><para><computeroutput>pos &lt;= size()</computeroutput> </para>
  1709. </requires><returns><para>Number of characters copied</para>
  1710. </returns></method>
  1711. <method name="compare" cv="const"><type>int</type><parameter name="pos"><paramtype>size_type</paramtype><description><para>Starting position within this string to perform comparison to </para></description></parameter><parameter name="n"><paramtype>size_type</paramtype><description><para>Length of the substring of this string to perform comparison to </para></description></parameter><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a sequence of characters, must not be NULL. </para></description></parameter><parameter name="len"><paramtype>size_type</paramtype><description><para>Number of characters in the sequence <emphasis>str</emphasis>. </para></description></parameter><description><para>Lexicographically compares the argument string to a part of this string</para><para>
  1712. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if <emphasis>pos</emphasis> is out of range. </para></description><requires><para><computeroutput>pos &lt;= size()</computeroutput> </para>
  1713. </requires><returns><para>Zero if the comparand equals this string, a negative value if this string is less than the comparand, a positive value if this string is greater than the comparand.</para>
  1714. </returns></method>
  1715. <method name="compare" cv="const noexcept"><type>int</type><parameter name="pos"><paramtype>size_type</paramtype><description><para>Starting position within this string to perform comparison to </para></description></parameter><parameter name="n"><paramtype>size_type</paramtype><description><para>Length of the substring of this string to perform comparison to </para></description></parameter><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographically compares the argument string to a part of this string</para><para>
  1716. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if <emphasis>pos</emphasis> is out of range. </para></description><requires><para><computeroutput>pos &lt;= size()</computeroutput> </para>
  1717. </requires><returns><para>Zero if the comparand equals this string, a negative value if this string is less than the comparand, a positive value if this string is greater than the comparand.</para>
  1718. </returns></method>
  1719. <method name="compare" cv="const noexcept"><type>int</type><parameter name="pos"><paramtype>size_type</paramtype><description><para>Starting position within this string to perform comparison to </para></description></parameter><parameter name="n"><paramtype>size_type</paramtype><description><para>Length of the substring of this string to perform comparison to </para></description></parameter><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographically compares the argument string literal to a part of this string</para><para>
  1720. <emphasis role="bold">Throws:</emphasis> An <computeroutput>std::exception</computeroutput>-based exception if <emphasis>pos</emphasis> is out of range. </para></description><requires><para><computeroutput>pos &lt;= size()</computeroutput> </para>
  1721. </requires><returns><para>Zero if the comparand equals this string, a negative value if this string is less than the comparand, a positive value if this string is greater than the comparand.</para>
  1722. </returns></method>
  1723. <method name="compare" cv="const noexcept"><type>int</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a sequence of characters, must not be NULL. </para></description></parameter><parameter name="len"><paramtype>size_type</paramtype><description><para>Number of characters in the sequence <emphasis>str</emphasis>. </para></description></parameter><description><para>Lexicographically compares the argument string to this string</para><para>
  1724. </para></description><returns><para>Zero if the comparand equals this string, a negative value if this string is less than the comparand, a positive value if this string is greater than the comparand. </para>
  1725. </returns></method>
  1726. <method name="compare" cv="const noexcept"><type>int</type><parameter name="str"><paramtype>const_pointer</paramtype><description><para>Comparand. Must point to a zero-terminated sequence of characters, must not be NULL. </para></description></parameter><description><para>Lexicographically compares the argument string to this string</para><para>
  1727. </para></description><returns><para>Zero if the comparand equals this string, a negative value if this string is less than the comparand, a positive value if this string is greater than the comparand. </para>
  1728. </returns></method>
  1729. <method name="compare" cv="const noexcept"><type>int</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Comparand </para></description></parameter><description><para>Lexicographically compares the argument string to this string</para><para>
  1730. </para></description><returns><para>Zero if the comparand equals this string, a negative value if this string is less than the comparand, a positive value if this string is greater than the comparand. </para>
  1731. </returns></method>
  1732. </method-group>
  1733. <constructor cv="noexcept"><description><para>Constructor</para><para>
  1734. </para></description><postconditions><para><computeroutput>empty() == true</computeroutput> </para>
  1735. </postconditions></constructor>
  1736. <constructor cv="noexcept"><template>
  1737. <template-type-parameter name="T"/>
  1738. <template-nontype-parameter name="LenV"><type>size_type</type></template-nontype-parameter>
  1739. </template><parameter name="p"><paramtype>T(&amp;)</paramtype><description><para>A zero-terminated constant sequence of characters </para></description></parameter><description><para>Constructor from a string literal</para><para>
  1740. </para></description><postconditions><para><computeroutput>*this == p</computeroutput> </para>
  1741. </postconditions></constructor>
  1742. <constructor cv="noexcept"><parameter name="that"><paramtype><classname>basic_string_literal</classname> const &amp;</paramtype><description><para>Source literal to copy string from </para></description></parameter><description><para>Copy constructor</para><para>
  1743. </para></description><postconditions><para><computeroutput>*this == that</computeroutput> </para>
  1744. </postconditions></constructor>
  1745. <copy-assignment cv="noexcept"><type>constexpr <classname>this_type</classname> &amp;</type><parameter name="that"><paramtype><classname>this_type</classname> const &amp;</paramtype><description><para>Source literal to copy string from </para></description></parameter><description><para>Assignment operator</para><para>
  1746. </para></description><postconditions><para><computeroutput>*this == that</computeroutput> </para>
  1747. </postconditions></copy-assignment>
  1748. <copy-assignment cv="noexcept"><type>constexpr <classname>this_type</classname> &amp;</type><template>
  1749. <template-type-parameter name="T"/>
  1750. <template-nontype-parameter name="LenV"><type>size_type</type></template-nontype-parameter>
  1751. </template><parameter name="p"><paramtype>T(&amp;)</paramtype><description><para>A zero-terminated constant sequence of characters </para></description></parameter><description><para>Assignment from a string literal</para><para>
  1752. </para></description><postconditions><para><computeroutput>*this == p</computeroutput> </para>
  1753. </postconditions></copy-assignment>
  1754. </class><typedef name="string_literal"><purpose>String literal type for narrow characters. </purpose><type><classname>basic_string_literal</classname>&lt; char &gt;</type></typedef>
  1755. <typedef name="wstring_literal"><purpose>String literal type for wide characters. </purpose><type><classname>basic_string_literal</classname>&lt; wchar_t &gt;</type></typedef>
  1756. </namespace>
  1757. </namespace>
  1758. </header>
  1759. <header name="boost/log/utility/type_dispatch/date_time_types.hpp">
  1760. <para><para>Andrey Semashev </para>
  1761. <para>13.03.2008</para>
  1762. The header contains definition of date and time-related types supported by the library by default. </para><namespace name="boost">
  1763. <namespace name="log">
  1764. <typedef name="native_date_time_types"><description><para>An MPL-sequence of natively supported date and time types of attributes </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1765. <typedef name="boost_date_time_types"><description><para>An MPL-sequence of Boost date and time types of attributes </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1766. <typedef name="date_time_types"><description><para>An MPL-sequence with the complete list of the supported date and time types </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1767. <typedef name="native_date_types"><description><para>An MPL-sequence of natively supported date types of attributes </para></description><type>native_date_time_types</type></typedef>
  1768. <typedef name="boost_date_types"><description><para>An MPL-sequence of Boost date types of attributes </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1769. <typedef name="date_types"><description><para>An MPL-sequence with the complete list of the supported date types </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1770. <typedef name="native_time_types"><description><para>An MPL-sequence of natively supported time types </para></description><type>native_date_time_types</type></typedef>
  1771. <typedef name="boost_time_types"><purpose>An MPL-sequence of Boost time types. </purpose><type>boost_date_time_types</type></typedef>
  1772. <typedef name="time_types"><description><para>An MPL-sequence with the complete list of the supported time types </para></description><type>date_time_types</type></typedef>
  1773. <typedef name="native_time_duration_types"><description><para>An MPL-sequence of natively supported time duration types of attributes </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1774. <typedef name="boost_time_duration_types"><description><para>An MPL-sequence of Boost time duration types of attributes </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1775. <typedef name="time_duration_types"><description><para>An MPL-sequence with the complete list of the supported time duration types </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1776. <typedef name="boost_time_period_types"><description><para>An MPL-sequence of Boost time duration types of attributes </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1777. <typedef name="time_period_types"><description><para>An MPL-sequence with the complete list of the supported time period types </para></description><type>boost_time_period_types</type></typedef>
  1778. </namespace>
  1779. </namespace>
  1780. <macro name="BOOST_LOG_NATIVE_DATE_TIME_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the standard C date/time types. </purpose></macro>
  1781. <macro name="BOOST_LOG_NATIVE_DATE_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the standard C date types. </purpose></macro>
  1782. <macro name="BOOST_LOG_BOOST_DATE_TIME_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the Boost date/time types. </purpose></macro>
  1783. <macro name="BOOST_LOG_DATE_TIME_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of date/time types. </purpose></macro>
  1784. <macro name="BOOST_LOG_BOOST_DATE_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the Boost date types. </purpose></macro>
  1785. <macro name="BOOST_LOG_DATE_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of date types. </purpose></macro>
  1786. <macro name="BOOST_LOG_NATIVE_TIME_DURATION_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the standard time duration types. </purpose></macro>
  1787. <macro name="BOOST_LOG_BOOST_TIME_DURATION_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the Boost time duration types. </purpose></macro>
  1788. <macro name="BOOST_LOG_TIME_DURATION_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of time duration types. </purpose></macro>
  1789. <macro name="BOOST_LOG_BOOST_TIME_PERIOD_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the Boost time period types. </purpose></macro>
  1790. <macro name="BOOST_LOG_TIME_PERIOD_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of time period types. </purpose></macro>
  1791. </header>
  1792. <header name="boost/log/utility/type_dispatch/dynamic_type_dispatcher.hpp">
  1793. <para><para>Andrey Semashev </para>
  1794. <para>15.04.2007</para>
  1795. The header contains implementation of the run-time type dispatcher. </para><namespace name="boost">
  1796. <namespace name="log">
  1797. <class name="dynamic_type_dispatcher"><inherit access="public">type_dispatcher</inherit><purpose>A dynamic type dispatcher. </purpose><description><para>The type dispatcher can be used to pass objects of arbitrary types from one component to another. With regard to the library, the type dispatcher can be used to extract attribute values.</para><para>The dynamic type dispatcher can be initialized in run time and, therefore, can support different types, depending on runtime conditions. Each supported type is associated with a functional object that will be called when an object of the type is dispatched. </para></description><method-group name="public member functions">
  1798. <method name="register_type"><type>void</type><template>
  1799. <template-type-parameter name="T"/>
  1800. <template-type-parameter name="VisitorT"/>
  1801. </template><parameter name="visitor"><paramtype>VisitorT const &amp;</paramtype><description><para>Function object that will be associated with the type <computeroutput>T</computeroutput> </para></description></parameter><description><para>The method registers a new type</para><para>
  1802. </para></description></method>
  1803. <method name="registered_types_count" cv="const"><type>dispatching_map::size_type</type><description><para>The method returns the number of registered types </para></description></method>
  1804. </method-group>
  1805. <constructor><description><para>Default constructor </para></description></constructor>
  1806. <constructor><parameter name="that"><paramtype><classname>dynamic_type_dispatcher</classname> const &amp;</paramtype></parameter><description><para>Copy constructor </para></description></constructor>
  1807. <copy-assignment><type><classname>dynamic_type_dispatcher</classname> &amp;</type><parameter name="that"><paramtype><classname>dynamic_type_dispatcher</classname> const &amp;</paramtype></parameter><description><para>Copy assignment </para></description></copy-assignment>
  1808. </class>
  1809. </namespace>
  1810. </namespace>
  1811. </header>
  1812. <header name="boost/log/utility/type_dispatch/standard_types.hpp">
  1813. <para><para>Andrey Semashev </para>
  1814. <para>19.05.2007</para>
  1815. The header contains definition of standard types supported by the library by default. </para><namespace name="boost">
  1816. <namespace name="log">
  1817. <typedef name="integral_types"><description><para>An MPL-sequence of integral types of attributes, supported by default </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1818. <typedef name="floating_point_types"><description><para>An MPL-sequence of FP types of attributes, supported by default </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1819. <typedef name="arithmetic_types"><description><para>An MPL-sequence of all numeric types of attributes, supported by default </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1820. <typedef name="numeric_types"><purpose>Deprecated alias. </purpose><type>arithmetic_types</type></typedef>
  1821. <typedef name="string_types"><description><para>An MPL-sequence of string types of attributes, supported by default </para></description><type>mpl::vector&lt;&gt;</type></typedef>
  1822. <typedef name="default_attribute_types"><purpose>Deprecated alias. </purpose><type>default_attribute_value_types</type></typedef>
  1823. <function name="BOOST_PP_CAT"><type>typedef</type><parameter name=""><paramtype>mpl::vector</paramtype></parameter><parameter name=""><paramtype>BOOST_PP_SEQ_SIZE((bool)(signed char)(unsigned char)(short)(unsigned short)(int)(unsigned int)(long)(unsigned long)(char)(wchar_t)(char16_t)(char32_t)(float)(double)(long double)(std::string)(boost::log::string_literal)(std::wstring)(boost::log::wstring_literal))</paramtype></parameter><description><para>An MPL-sequence of all attribute value types that are supported by the library by default. </para></description></function>
  1824. </namespace>
  1825. </namespace>
  1826. <macro name="BOOST_LOG_AUX_STANDARD_TYPE_WCHAR_T" kind="functionlike"><macro-parameter name=""/></macro>
  1827. <macro name="BOOST_LOG_AUX_STANDARD_TYPE_CHAR16_T" kind="functionlike"><macro-parameter name=""/></macro>
  1828. <macro name="BOOST_LOG_AUX_STANDARD_TYPE_CHAR32_T" kind="functionlike"><macro-parameter name=""/></macro>
  1829. <macro name="BOOST_LOG_STANDARD_CHAR_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of character types. </purpose></macro>
  1830. <macro name="BOOST_LOG_AUX_STANDARD_LONG_LONG_TYPES" kind="functionlike"><macro-parameter name=""/></macro>
  1831. <macro name="BOOST_LOG_STANDARD_INTEGRAL_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of integral types. </purpose></macro>
  1832. <macro name="BOOST_LOG_STANDARD_FLOATING_POINT_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of floating point types. </purpose></macro>
  1833. <macro name="BOOST_LOG_STANDARD_ARITHMETIC_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of arithmetic types. </purpose></macro>
  1834. <macro name="BOOST_LOG_AUX_STANDARD_STRING_TYPES" kind="functionlike"><macro-parameter name=""/></macro>
  1835. <macro name="BOOST_LOG_AUX_STANDARD_WSTRING_TYPES" kind="functionlike"><macro-parameter name=""/></macro>
  1836. <macro name="BOOST_LOG_STANDARD_STRING_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of string types. </purpose></macro>
  1837. <macro name="BOOST_LOG_DEFAULT_ATTRIBUTE_VALUE_TYPES" kind="functionlike"><macro-parameter name=""/><purpose>Boost.Preprocessor sequence of the default attribute value types supported by the library. </purpose></macro>
  1838. </header>
  1839. <header name="boost/log/utility/type_dispatch/static_type_dispatcher.hpp">
  1840. <para><para>Andrey Semashev </para>
  1841. <para>15.04.2007</para>
  1842. The header contains implementation of a compile-time type dispatcher. </para><namespace name="boost">
  1843. <namespace name="log">
  1844. <class name="static_type_dispatcher"><template>
  1845. <template-type-parameter name="T"/>
  1846. </template><purpose>A static type dispatcher class. </purpose><description><para>The type dispatcher can be used to pass objects of arbitrary types from one component to another. With regard to the library, the type dispatcher can be used to extract attribute values.</para><para>Static type dispatchers allow to specify one or several supported types at compile time. </para></description><method-group name="public member functions">
  1847. </method-group>
  1848. <constructor specifiers="explicit"><template>
  1849. <template-type-parameter name="ReceiverT"/>
  1850. </template><parameter name="receiver"><paramtype>ReceiverT &amp;</paramtype><description><para>Unary function object that will be called on a dispatched value. The receiver must be callable with an argument of any of the supported types of the dispatcher. </para></description></parameter><description><para>Constructor. Initializes the dispatcher internals.</para><para>The <emphasis>receiver</emphasis> object is not copied inside the dispatcher, but references to it may be kept by the dispatcher after construction. The receiver object must remain valid until the dispatcher is destroyed.</para><para>
  1851. </para></description></constructor>
  1852. <constructor cv="= delete"><parameter name=""><paramtype><classname>static_type_dispatcher</classname> const &amp;</paramtype></parameter></constructor>
  1853. <copy-assignment cv="= delete"><type><classname>static_type_dispatcher</classname> &amp;</type><parameter name=""><paramtype><classname>static_type_dispatcher</classname> const &amp;</paramtype></parameter></copy-assignment>
  1854. </class>
  1855. </namespace>
  1856. </namespace>
  1857. </header>
  1858. <header name="boost/log/utility/type_dispatch/type_dispatcher.hpp">
  1859. <para><para>Andrey Semashev </para>
  1860. <para>15.04.2007</para>
  1861. The header contains definition of generic type dispatcher interfaces. </para><namespace name="boost">
  1862. <namespace name="log">
  1863. <class name="type_dispatcher"><purpose>A type dispatcher interface. </purpose><description><para>All type dispatchers support this interface. It is used to acquire the visitor interface for the requested type. </para></description><class name="callback"><template>
  1864. <template-type-parameter name="T"/>
  1865. </template><description><para>This interface is used by type dispatchers to consume the dispatched value. </para></description><method-group name="public member functions">
  1866. <method name="operator()" cv="const"><type>void</type><parameter name="value"><paramtype>T const &amp;</paramtype><description><para>The dispatched value </para></description></parameter><description><para>The operator invokes the visitor-specific logic with the given value</para><para>
  1867. </para></description></method>
  1868. <method name="conversion-operator" cv="const noexcept" specifiers="explicit"><type>bool</type><description><para>The operator checks if the visitor is attached to a receiver </para></description></method>
  1869. <method name="operator!" cv="const noexcept"><type>bool</type><description><para>The operator checks if the visitor is not attached to a receiver </para></description></method>
  1870. </method-group>
  1871. </class><method-group name="protected member functions">
  1872. <method name="BOOST_DEFAULTED_FUNCTION"><type/><parameter name=""><paramtype><classname>type_dispatcher</classname>(<classname>type_dispatcher</classname> const &amp;that)</paramtype></parameter><parameter name=""><paramtype>:m_get_callback_impl(that.m_get_callback_impl) {}</paramtype></parameter><description><para>The method requests a callback for the value of type <computeroutput>T</computeroutput> </para><para>
  1873. </para></description><returns><para>The type-specific callback or an empty value, if the type is not supported </para>
  1874. </returns></method>
  1875. </method-group>
  1876. <constructor specifiers="explicit" cv="noexcept"><parameter name="get_callback_impl"><paramtype>get_callback_impl_type</paramtype></parameter><description><para>Initializing constructor </para></description></constructor>
  1877. </class>
  1878. </namespace>
  1879. </namespace>
  1880. </header>
  1881. <header name="boost/log/utility/unique_identifier_name.hpp">
  1882. <para><para>Andrey Semashev </para>
  1883. <para>30.04.2008</para>
  1884. The header contains <computeroutput>BOOST_LOG_UNIQUE_IDENTIFIER_NAME</computeroutput> macro definition. </para><macro name="BOOST_LOG_UNIQUE_IDENTIFIER_NAME" kind="functionlike"><macro-parameter name="prefix"/><description><para>Constructs a unique (in the current file scope) token that can be used as a variable name. The name will contain a prefix passed in the <emphasis>prefix</emphasis> argument. This allows to use the macro multiple times on a single line. </para></description></macro>
  1885. </header>
  1886. <header name="boost/log/utility/unused_variable.hpp">
  1887. <para><para>Andrey Semashev </para>
  1888. <para>10.05.2008</para>
  1889. The header contains definition of a macro to suppress compiler warnings about unused variables. </para><namespace name="boost">
  1890. <namespace name="log">
  1891. </namespace>
  1892. </namespace>
  1893. <macro name="BOOST_LOG_UNUSED_VARIABLE" kind="functionlike"><macro-parameter name="type"/><macro-parameter name="var"/><macro-parameter name="initializer"/><purpose>The macro suppresses compiler warnings for <computeroutput>var</computeroutput> being unused. </purpose></macro>
  1894. </header>
  1895. <header name="boost/log/utility/value_ref.hpp">
  1896. <para><para>Andrey Semashev </para>
  1897. <para>27.07.2012</para>
  1898. The header contains implementation of a value reference wrapper. </para><namespace name="boost">
  1899. <namespace name="log">
  1900. <function name="swap"><type>void</type><template>
  1901. <template-type-parameter name="T"/>
  1902. <template-type-parameter name="TagT"/>
  1903. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; &amp;</paramtype></parameter><purpose>Free swap function. </purpose></function>
  1904. <function name="operator&lt;&lt;"><type>std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</type><template>
  1905. <template-type-parameter name="CharT"/>
  1906. <template-type-parameter name="TraitsT"/>
  1907. <template-type-parameter name="T"/>
  1908. <template-type-parameter name="TagT"/>
  1909. </template><parameter name="strm"><paramtype>std::basic_ostream&lt; CharT, TraitsT &gt; &amp;</paramtype></parameter><parameter name="val"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><purpose>Stream output operator. </purpose></function>
  1910. <function name="operator&lt;&lt;"><type><classname>basic_formatting_ostream</classname>&lt; CharT, TraitsT, AllocatorT &gt; &amp;</type><template>
  1911. <template-type-parameter name="CharT"/>
  1912. <template-type-parameter name="TraitsT"/>
  1913. <template-type-parameter name="AllocatorT"/>
  1914. <template-type-parameter name="T"/>
  1915. <template-type-parameter name="TagT"/>
  1916. </template><parameter name="strm"><paramtype><classname>basic_formatting_ostream</classname>&lt; CharT, TraitsT, AllocatorT &gt; &amp;</paramtype></parameter><parameter name="val"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><purpose>Log formatting operator. </purpose></function>
  1917. <function name="operator=="><type>bool</type><template>
  1918. <template-type-parameter name="T"/>
  1919. <template-type-parameter name="TagT"/>
  1920. <template-type-parameter name="U"/>
  1921. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></function>
  1922. <function name="operator=="><type>bool</type><template>
  1923. <template-type-parameter name="U"/>
  1924. <template-type-parameter name="T"/>
  1925. <template-type-parameter name="TagT"/>
  1926. </template><parameter name="left"><paramtype>U const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter></function>
  1927. <function name="operator=="><type>bool</type><template>
  1928. <template-type-parameter name="T1"/>
  1929. <template-type-parameter name="TagT1"/>
  1930. <template-type-parameter name="T2"/>
  1931. <template-type-parameter name="TagT2"/>
  1932. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T1, TagT1 &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T2, TagT2 &gt; const &amp;</paramtype></parameter></function>
  1933. <function name="operator!="><type>bool</type><template>
  1934. <template-type-parameter name="T"/>
  1935. <template-type-parameter name="TagT"/>
  1936. <template-type-parameter name="U"/>
  1937. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></function>
  1938. <function name="operator!="><type>bool</type><template>
  1939. <template-type-parameter name="U"/>
  1940. <template-type-parameter name="T"/>
  1941. <template-type-parameter name="TagT"/>
  1942. </template><parameter name="left"><paramtype>U const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter></function>
  1943. <function name="operator!="><type>bool</type><template>
  1944. <template-type-parameter name="T1"/>
  1945. <template-type-parameter name="TagT1"/>
  1946. <template-type-parameter name="T2"/>
  1947. <template-type-parameter name="TagT2"/>
  1948. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T1, TagT1 &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T2, TagT2 &gt; const &amp;</paramtype></parameter></function>
  1949. <function name="operator&lt;"><type>bool</type><template>
  1950. <template-type-parameter name="T"/>
  1951. <template-type-parameter name="TagT"/>
  1952. <template-type-parameter name="U"/>
  1953. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></function>
  1954. <function name="operator&lt;"><type>bool</type><template>
  1955. <template-type-parameter name="U"/>
  1956. <template-type-parameter name="T"/>
  1957. <template-type-parameter name="TagT"/>
  1958. </template><parameter name="left"><paramtype>U const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter></function>
  1959. <function name="operator&lt;"><type>bool</type><template>
  1960. <template-type-parameter name="T1"/>
  1961. <template-type-parameter name="TagT1"/>
  1962. <template-type-parameter name="T2"/>
  1963. <template-type-parameter name="TagT2"/>
  1964. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T1, TagT1 &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T2, TagT2 &gt; const &amp;</paramtype></parameter></function>
  1965. <function name="operator&gt;"><type>bool</type><template>
  1966. <template-type-parameter name="T"/>
  1967. <template-type-parameter name="TagT"/>
  1968. <template-type-parameter name="U"/>
  1969. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></function>
  1970. <function name="operator&gt;"><type>bool</type><template>
  1971. <template-type-parameter name="U"/>
  1972. <template-type-parameter name="T"/>
  1973. <template-type-parameter name="TagT"/>
  1974. </template><parameter name="left"><paramtype>U const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter></function>
  1975. <function name="operator&gt;"><type>bool</type><template>
  1976. <template-type-parameter name="T1"/>
  1977. <template-type-parameter name="TagT1"/>
  1978. <template-type-parameter name="T2"/>
  1979. <template-type-parameter name="TagT2"/>
  1980. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T1, TagT1 &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T2, TagT2 &gt; const &amp;</paramtype></parameter></function>
  1981. <function name="operator&lt;="><type>bool</type><template>
  1982. <template-type-parameter name="T"/>
  1983. <template-type-parameter name="TagT"/>
  1984. <template-type-parameter name="U"/>
  1985. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></function>
  1986. <function name="operator&lt;="><type>bool</type><template>
  1987. <template-type-parameter name="U"/>
  1988. <template-type-parameter name="T"/>
  1989. <template-type-parameter name="TagT"/>
  1990. </template><parameter name="left"><paramtype>U const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter></function>
  1991. <function name="operator&lt;="><type>bool</type><template>
  1992. <template-type-parameter name="T1"/>
  1993. <template-type-parameter name="TagT1"/>
  1994. <template-type-parameter name="T2"/>
  1995. <template-type-parameter name="TagT2"/>
  1996. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T1, TagT1 &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T2, TagT2 &gt; const &amp;</paramtype></parameter></function>
  1997. <function name="operator&gt;="><type>bool</type><template>
  1998. <template-type-parameter name="T"/>
  1999. <template-type-parameter name="TagT"/>
  2000. <template-type-parameter name="U"/>
  2001. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype>U const &amp;</paramtype></parameter></function>
  2002. <function name="operator&gt;="><type>bool</type><template>
  2003. <template-type-parameter name="U"/>
  2004. <template-type-parameter name="T"/>
  2005. <template-type-parameter name="TagT"/>
  2006. </template><parameter name="left"><paramtype>U const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T, TagT &gt; const &amp;</paramtype></parameter></function>
  2007. <function name="operator&gt;="><type>bool</type><template>
  2008. <template-type-parameter name="T1"/>
  2009. <template-type-parameter name="TagT1"/>
  2010. <template-type-parameter name="T2"/>
  2011. <template-type-parameter name="TagT2"/>
  2012. </template><parameter name="left"><paramtype><classname>value_ref</classname>&lt; T1, TagT1 &gt; const &amp;</paramtype></parameter><parameter name="right"><paramtype><classname>value_ref</classname>&lt; T2, TagT2 &gt; const &amp;</paramtype></parameter></function>
  2013. </namespace>
  2014. </namespace>
  2015. </header>
  2016. <header name="boost/log/utility/value_ref_fwd.hpp">
  2017. <para><para>Andrey Semashev </para>
  2018. <para>27.07.2012</para>
  2019. The header contains forward declaration of a value reference wrapper. </para><namespace name="boost">
  2020. <namespace name="log">
  2021. <class name="value_ref"><template>
  2022. <template-type-parameter name="T"/>
  2023. <template-type-parameter name="TagT"/>
  2024. </template><purpose>Reference wrapper for a stored attribute value. </purpose><description><para>The <computeroutput><classname alt="boost::log::value_ref">value_ref</classname></computeroutput> class template provides access to the stored attribute value. It is not a traditional reference wrapper since it may be empty (i.e. refer to no value at all) and it can also refer to values of different types. Therefore its interface and behavior combines features of Boost.Ref, Boost.Optional and Boost.Variant, depending on the use case.</para><para>The template parameter <computeroutput>T</computeroutput> can be a single type or an MPL sequence of possible types being referred. The reference wrapper will act as either an optional reference or an optional variant of references to the specified types. In any case, the referred values will not be modifiable (i.e. <computeroutput><classname alt="boost::log::value_ref">value_ref</classname></computeroutput> always models a const reference).</para><para>Template parameter <computeroutput>TagT</computeroutput> is optional. It can be used for customizing the operations on this reference wrapper, such as putting the referred value to log. </para></description><method-group name="public member functions">
  2025. <method name="BOOST_DEFAULTED_FUNCTION" cv="const noexcept"><type/><parameter name=""><paramtype><classname>value_ref</classname>(<classname>value_ref</classname> const &amp;that)</paramtype></parameter><parameter name=""><paramtype>noexcept :base_type(static_cast&lt; base_type const &amp; &gt;(that)) {}</paramtype></parameter><description><para>Default constructor. Creates a reference wrapper that does not refer to a value.</para><para>Copy constructor.</para><para>Initializing constructor. Creates a reference wrapper that refers to the specified value. </para></description></method>
  2026. <method name="conversion-operator" cv="const noexcept" specifiers="explicit"><type>bool</type><description><para>The operator verifies if the wrapper refers to a value. </para></description></method>
  2027. <method name="operator!" cv="const noexcept"><type>bool</type><description><para>The operator verifies if the wrapper does not refer to a value. </para></description></method>
  2028. <method name="empty" cv="const noexcept"><type>bool</type><description><para>
  2029. </para></description><returns><para><computeroutput>true</computeroutput> if the wrapper does not refer to a value. </para>
  2030. </returns></method>
  2031. <method name="swap" cv="noexcept"><type>void</type><parameter name="that"><paramtype><classname>value_ref</classname> &amp;</paramtype></parameter><description><para>Swaps two reference wrappers </para></description></method>
  2032. </method-group>
  2033. </class>
  2034. </namespace>
  2035. </namespace>
  2036. </header>
  2037. </library-reference>